I am new to C++ and have a few questions if that is ok.
I would like to get into good habbits early (i.e., using switch instead of 12 if else statments) and was wondering if anyone knew right off how to get a timer to time the compilation and execution of the program? I would like to test and tweak my work just to see what will make it faster and smoother. My prof said he knew there was one available but he couldn't think of it right off... any clue?
Also, I am looking for an extra credit problem. I was told that I might try writing programming "pearls" - techniques that elegantly solve common problems. If anyone has an idea of something creative please let me know. Note that I only have knowledge on iostream, fstream, iomanip, cmath, and control structures. Not sure how creative I can get with so little under my belt.