Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<time.h>
- using namespace std;
- void delay(clock_t a)
- {
- clock_t start;
- start = clock();
- while(clock()-start<a)
- {
- }
- }
- int main()
- {
- delay(100);
- cout << "A";
- delay(100);
- cout << "h";
- delay(100);
- cout << "m";
- delay(100);
- cout << "e";
- delay(100);
- cout << "d";
- delay(100);
- }
Advertisement
Add Comment
Please, Sign In to add comment