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() { cout<<"Hello World"; return 0; }
// QStack.h - Contains declarations of some functions #pragma once #ifdef QSTACK_EXPORTS #define QSTACK_API __declspec(dllexport) #else #define QSTACK_API __declspec(dllimport) #endif struct Tstruct { int value; Tstruct * next; }; struct TStack { int value; TStack *next; }; class QStack { public: TStack* Push(TStack *, int); void StackInit(TStack* *); int Pop(TStack* *); void queueInit(Tstruct * *, Tstruct * *); void enqueue(Tstruct * *, Tstruct * *, int); int Dequeue(Tstruct* *, Tstruct* *); };
#include "QStack.h" void QStack::StackInit(TStack* *TOP) { *TOP = nullptr; }; TStack* QStack::Push(TStack *a_top, int a_value) { TStack *l_hlp; l_hlp = new TStack; l_hlp->next = a_top; l_hlp->value = a_value; return l_hlp; }; int QStack::Pop(TStack* *a_top) { TStack *l_hlp; int l_val; l_hlp = *a_top; *a_top = l_hlp->next; l_val = l_hlp->value; delete l_hlp; return l_val; };

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