The following is a list of the most common mistakes that I see in people’s code.
Discription

It’s not meant to be an exhaustive list, but rather a collection of things that I’ve seen come up over and over again.

1) Not using const correctly: This one is pretty basic, but it still comes up all the time. If you’re declaring something as const , make sure you actually mean it! For example, if you declare a variable like this:

const int x = 3; // … do stuff with x … int y = x + 1; // ERROR!!! Can’t modify const variables! // … more stuff with x ..
https://t.co/sQfhreOZNi

Back to Main

Subscribe for the latest news: