1363
you are viewing a single comment's thread
view the rest of the comments
[-] raspberriesareyummy@lemmy.world 3 points 5 days ago
  std::cout << "C++ is simple and fun ... you cretin" <<std::endl;

You dropped something.

[-] BigDanishGuy@sh.itjust.works 6 points 5 days ago

Well ackshually <<std::endl is not the preferred way to do it according to the C++ Core Guidelines https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rio-endl

So to be a good little lemming I've added a \n, but I refuse to flush!

[-] raspberriesareyummy@lemmy.world 1 points 5 days ago

Interesting... today I learned. But since I only ever use std::cout in my debugging code (i.e. DURING debugging) or for status outputs of the application (for small apps), and for everything else I use my own logging framework that uses printf & syslog udp messages... luckily nothing I need to refactor :D

this post was submitted on 17 Oct 2024
1363 points (98.9% liked)

RetroGaming

19394 readers
317 users here now

Vintage gaming community.

Rules:

  1. Be kind.
  2. No spam or soliciting for money.
  3. No racism or other bigotry allowed.
  4. Obviously nothing illegal.

If you see these please report them.

founded 1 year ago
MODERATORS