• Hellfire103@lemmy.caOP
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    13 days ago

    Instead of this:

    std::cout << "Hello world.\n";
    

    You can do this:

    std::cout << "Hello world." << endl;
    
    • Daedskin@lemm.ee
      link
      fedilink
      arrow-up
      6
      ·
      12 days ago

      The fact that you used the namespace for cout but not for endl inordinately bothers me