online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> //#include <windows.h> #include <curses.h> #include <thread> #include <chrono> using namespace std; int main() { int hrs=0, min=0, sec=0; initscr(); while (true) { //system("cls"); clear(); sec++; if (sec == 60) { sec = 0; min++; if (min == 60) { min = 0; hrs++; if (hrs == 24) hrs = 0; } } printw("%02d:%02d:%02d", hrs, min, sec); refresh(); //sleep(1); this_thread::sleep_for (chrono::seconds(1)); if (hrs == 1) break; // po 1h koniec ;-) } endwin(); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue