add a timer c 2b 2b

Solutions on MaxInterview for add a timer c 2b 2b by the best coders in the world

showing results for - "add a timer c 2b 2b"
Maybell
25 Jun 2018
1# include <windows.h>
2# include <iostream>
3using namespace std;
4
5void timer(int sec)
6{
7    Sleep(sec*1000);
8}
9
10int main()
11{
12    cout << "Wait 5 seconds " << endl;
13    timer(5);
14    cout << "FireWorks !" << endl;
15
16    return 0;
17}