New answers tagged

4 votes

Should you default to using classes in C++?

//Maybe put this into a struct? My c++ professor had a saying about this: The only difference between classes and structs is classes default to private. So, sure. If you'd rather not have to type ...
candied_orange's user avatar
6 votes

C++ vs C console output idioms

The printf() approach has these disadvantages: No type-safety. Some compilers add some type-safety their own way, at least when the format-strings are known. No extensibility. Only the basic types ...
Deduplicator's user avatar
  • 9,031

Top 50 recent answers are included