online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <time.h> int main () { time_t now; struct tm newyear; time(&now); /* get current time; same as: now = time(NULL) */ newyear = *localtime(&now); newyear.tm_hour = 0; newyear.tm_min = 0; newyear.tm_sec = 0; newyear.tm_mon = 11; // Styczen=0, Luty=1 itd. newyear.tm_mday = 31; int days = (int)difftime(mktime(&newyear),now) / (3600 * 24); std::cout << days << " Dni do konca roku.\n"; 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