Bloods vs Crips meme, captioned "Which side are you on? backslash N or end-ell"
you are viewing a single comment's thread
view the rest of the comments
[–] 17 points 2 years ago (17 children)
  • [–] 40 points 2 years ago (3 children)

    std::endl is used in output streams in C++ to end the line, using the os specific line termination sequence, and flush the buffer.

    The later one is a performance issue in many cases, why the use of "\n" is considered preferred

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 2 years ago (2 children)

    Don’t most terminals flush the buffer on newline anyway?

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 10 points 2 years ago* (5 children)

    Instead of this:

    cout << "Hello world.\n";
    

    You can do this:

    cout << "Hello world." << endl;
    
  • source
  • parent
  • hideshow 5 child comments
  • [–] 1 point 2 years ago (3 children)

    something has replaced your lessthan signs with their HTML counterparts. such a silly thing to do in a code block

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 2 years ago (2 children)

    I think that's client side. Doesn't happen for me.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 2 years ago (4 children)
  • [–] 11 points 2 years ago (2 children)

    Boy am I glad I don’t do C++ anymore. That string handling with the overloaded bitshift operator was wild.

  • source
  • parent
  • hideshow 2 child comments