+ 1

Where is error? It doesn't working.

#include <iostream> #include <ctime> using namespace std; int main() { int t = time(0)+5; int td = t; while (true){ if (time(0)==t){ cout<<"x"; t=time(0) + 5; } if (t==td+50){ break;  }  } }

24th Feb 2018, 3:57 PM
KirGear
1 Answer
+ 1
put it in code playground
25th Feb 2018, 12:39 AM
David Borges Reis e Silva
David Borges Reis e Silva - avatar