Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- #include <cstdlib>
- using namespace std;
- int main() {
- time_t rawtime;
- int alarmtime;
- rawtime = time(NULL);
- cout << rawtime << endl;
- cin >> alarmtime;
- while(rawtime<alarmtime) {
- rawtime = time(NULL);
- cout << rawtime << endl;
- system("CLS");
- }
- for(int i = 1; i <= 1000; i++) { cout << "\a \a \a" << endl; }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement