I'm looking to make a timer, that after a set amount of time will cout a message.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
#include <ctime>
usingnamespace std;
int main()
{
int a = clock();
if (a == 300){
cout << "Your time is up.";
}
cin.get();
return 0;
}
What are you talking about, "real compiler?" You wouldn't have to pay for a good compiler, that'd be what makes it good. Besides that, Dev-C++ is an IDE (and not even a good one, it's old). Download Code::Blocks. It's another IDE, and it comes with a more up-to-date version of MinGW.