labs-edaf30/lab1/stream-examples/example-out.cc

12 lines
313 B
C++
Raw Normal View History

2022-12-08 15:43:15 +01:00
/* An example program that prints text to both standard out and standard error.
*/
#include <iostream>
int main()
{
std::cout << "This text is written to stdout\n";
std::cerr << "And this is written to stderr\n";
std::cout << "More text to stdout\n";
std::cerr << "And some more to stderr\n";
}