You are viewing a single comment's thread from:

RE: DIFFERENCE BETWEEN CIN AND COUT COMMAND IN C++ (Syntax, Getting input and Usage) !!!

in #programming8 years ago (edited)

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.

Sort:  

Yeah that's a nice substitute 😄

Coin Marketplace

STEEM 0.13
TRX 0.33
JST 0.034
BTC 111130.52
ETH 4299.27
SBD 0.83