you are viewing a single comment's thread
view the rest of the comments
[–] 17 points 1 year ago (5 children)
  • [–] 40 points 1 year ago (1 child)

    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 2 child comments
  • [–] 2 points 1 year ago (2 children)

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

  • source
  • parent
  • hideshow 4 child comments
  • [–] [S] 10 points 1 year ago* (2 children)

    Instead of this:

    cout << "Hello world.\n";
    

    You can do this:

    cout << "Hello world." << endl;
    
  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 year ago (1 child)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 1 year ago (1 child)

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

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

    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