Pictured below is a project I like to call "The Hero Project", although it was a lot like a villain.
I was required to create the program above, and it basically displayed the names of superheroes, along with their powers, and power levels. To create it I had to create classes, overload several operators especially an equal operator (operator=), and do so much more just to get it to work as expected. At first, it seemed pretty easy to me, in fact I was done with it in about two hours, I thought so. Then, I began compiling and that was when all hell let loose, errors burst forth from every corner.
Online, it was as though I was the first person ever to get such errors, no helpful information was found, and sat toiling, it was as though walls were closing in upon me. Stuck in immense anxiety with absolutely no results, I ended up contacting a professor and I am glad I did.
Before then, to me, the const was an optional keyword I hardly ever used, and my checks on data usually took the route:
if (sizeof(listPow) > MIN && strlen(heroName) > ONE && strlen(heroName) < MAX_NAME_LENGTH && countPow != MIN)
As is obvious, it is not really wise to assume that the argument exists without first checking. Due to these errors, I learned of lazy evaluation, and the fact that const is a major part of syntax at times. The problems were resolved, and ever since, whenever I come upon an error, I go down to the tiniest of details.
Thankfully, my checks now go this way: if (heroName && heroName[0] && listPow && countPow > 0)
By the way, MIN = 0, and MAX_NAME_LENGTH = 50