And why go through all that timer code? Why not just add at the bottom of main() before the return the following:
for C++Code:cin.get(); return 0; }
for CCode:getchar(); return 0; }
A simple and direct screen pause.
And why go through all that timer code? Why not just add at the bottom of main() before the return the following:
for C++Code:cin.get(); return 0; }
for CCode:getchar(); return 0; }
A simple and direct screen pause.
Definition: Politics -- Latin, from
poly meaning many and
tics meaning blood sucking parasites
-- Tom Smothers
The "timer code" is a really bad idea because it thrashes the cpu in a busy wait by calling clock() over and over.