You are viewing a single comment's thread from:
RE: DIFFERENCE BETWEEN CIN AND COUT COMMAND IN C++ (Syntax, Getting input and Usage) !!!
Rather than doing
cout << "Hello world.\n";
to put the newline character at the end of the line
I always used to use endl instead (technically std::endl I guess) like this:
cout << "Hello world." << endl;
It always felt cleaner, and felt less like I was writing c.
Yeah that's a nice substitute 😄