examples/c++/<sensor>.cxx: changed cout / endl to std::cout / std::endl

Signed-off-by: Norbert Wesp <nwesp@phytec.de>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Norbert Wesp
2017-02-14 13:33:17 +01:00
committed by Mihai Tudor Panu
parent aecdac255d
commit 545e288967
5 changed files with 32 additions and 32 deletions

View File

@ -42,7 +42,7 @@ int main(int argc, char **argv)
signal(SIGINT, sig_handler);
//! [Interesting]
cout << "Initializing test-application..." << endl;
std::cout << "Initializing test-application..." << std::endl;
// Instantiate an HDC1000 instance on bus 1
upm::HDC1000 *mySensor = new upm::HDC1000(1);
@ -50,15 +50,15 @@ int main(int argc, char **argv)
// update and print available values every second
while (run)
{
cout << "Humidity: " << mySensor->getHumidity(true) << endl
<< "Temperature: " << mySensor->getTemperature(true) << endl;
std::cout << "Humidity: " << mySensor->getHumidity(true) << std::endl
<< "Temperature: " << mySensor->getTemperature(true) << std::endl;
cout << endl;
std::cout << std::endl;
sleep(1);
}
cout << "Exiting test-application..." << endl;
std::cout << "Exiting test-application..." << std::endl;
delete mySensor;
//! [Interesting]