Ejemplo n.º 1
0
int main (int argc, char* argv[]) 
{
    print_compiler();

    std::ofstream myfile("example.txt");
    std::stringstream mysstream;

    print_something(std::cout);
    print_something(myfile);
    print_something(mysstream);

    std::cout << "mysstream is: " << mysstream.str(); // newline contained

    return 0;
}
Ejemplo n.º 2
0
int main(int argc, char* argv[]) {
	print_hello_world();
	print_something();
	return 0;
}