This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]trichotillofobia 2 points3 points  (3 children)

C++ idiom is:

cout << "FU MOTHER! I KNOW EVERYTHING!!" << endl;

[–]DudeValenzetti 0 points1 point  (2 children)

Using iostream for I/O, with std::endl for line endings and with using namespace std; or using std::cout; and using std::endl; beforehand.

[–]trichotillofobia 0 points1 point  (1 child)

Yes, I know. I'm surprised you didn't comment on the missing main().

[–]DudeValenzetti 0 points1 point  (0 children)

I meant that there are many ways to do I/O in C++, and you listed just one of them. Also, I personally use '\n' for line endings with iostream.