online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <iostream> #include <iomanip> using namespace std; #include <stdio.h> class anon { private: int a; int b; unsigned char c; unsigned char d; unsigned char e; unsigned char f; public: anon() { a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; } void capchuy() { std::cout << " a = " << setw(3) << a << ", b = " << setw(3) << b << ", c = " << setw(3) << +c << ", d = " << setw(3) << +d << ", e = " << setw(3) << +e << ", f = " << setw(3) << +f << "\n"; } }; typedef int main() { anon* p = new anon(); p->capchuy(); int* pa = (int*)p; *pa = 100; *(pa + 1) = 200; *(pa + 2) = 300; p->capchuy(); 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