Skip to content

cout / endl

I/O · legacy stream

C++ iostream leftover. Parses, but post is the language’s real print.

cout << arg << arg << endl;
NameTypeDescription
arganyEach << is another print argument.
endlmanipulatorEnds the line.

void.

print(arg, arg)

Each << becomes another argument to print. endl finishes the statement. There is no cin, scanf, or stream formatting (std::setw). Game input comes from Instances, DataStores, and signals.

New code should use post.

cout << "hi" << endl;

Emits:

print("hi")

post