online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> using namespace std; int main() { long time_taken; double distance; int RB4,d1,d2,d3; // yak , yak , yak . . . must be verified for a specific compiler time_taken = 0x2de1; // time_taken = (TMR1L | (TMR1H<<8)); distance = (0.0272*time_taken)/2; d1 = int(distance/100)%10; d2 = int(distance/10)%10; d3 = int(distance/1)%10; //then want to compare and take action using if statement if(false){ RB4 = 1; }else { RB4 = 0; } std::cout<<time_taken; std::cout<<endl; std::cout<<distance; std::cout<<endl; std::cout<<d1; std::cout<<endl; std::cout<<d2; std::cout<<endl; std::cout<<d3; std::cout<<endl; 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