Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- #include <ctime>
- #include <time.h>
- using namespace std;
- void wait ( float seconds )
- {
- clock_t endwait;
- endwait = clock () + seconds * CLOCKS_PER_SEC ;
- while (clock() < endwait) {}
- }
- int main(int argc, char** argv) {
- for (int i = 0; i < 25; i++) {
- for(int j = 0; j < 60; j++) {
- cout << i << " : " << j << endl;
- wait(1);
- }
- }
- // izbrojalo do kraja asaaaaaaaaaaaaaaaaa ALARM
- for(int i = 0; i < 10000000; i++) {
- cout << rand() % 2;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment