Quantcast
Channel: Programming Archives - SysTutorials
Viewing all articles
Browse latest Browse all 130

How to print a line to STDERR and STDOUT in C++?

$
0
0

In C++, how to print a string as a line to STDOUT? That is, the string and the newline character, nicely? And similarly, how to print the line to STDERR? In C++, you may print the string and then 'n' or std::endl to STDOUT by operating on the std::cout stream: std::cout << your_string << std::endl; […]

The post How to print a line to STDERR and STDOUT in C++? appeared first on SysTutorials.


Viewing all articles
Browse latest Browse all 130

Trending Articles