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 execute it. *******************************************************************************/ using System; class HelloWorld { static void Main() { Console.WriteLine("Hello World"); } }
public class Car { //الصفات //رقم السيارة public int Id; //سرعة السيارة public int speed; //تعمل -المحرك يعمل public bool isOn; //اسم الشركة public string company; //اللون public string color; // البناء // العمليات public void Drive(int d) { this.speed = d; Console.WriteLine("Drive - Speed:{0}", this.speed); } public void Speed(int d) { this.speed += d; Console.WriteLine("Speed - Speed:{0}", this.speed); } public void Slow(int d) { this.speed -= d; Console.WriteLine("Slow - Speed:{0}", this.speed); } public void Off() { if (this.speed == 0) { this.isOn= false; } else this.isOn = true; } public void On() { if (this.speed != 0) { this.isOn = false; } else this.isOn = true; } }
public class Bus { //الصفات //رقم الخط public int Id; //السعة public int c; //عدد الركاب public int p; //اسم الشركة public string company; // البناء // العمليات public void Setp(int p) { if (p <= this.c) { this.p = p; Console.WriteLine("P:{0}", this.p); } else Console.WriteLine("Error - P:{0}", p); } public bool IsEmpty() { if (this.p == 0) { return true; } else return false; } public bool IsFull() { if (this.p == this.c) { return true; } else return false; } public void Inc(int p) { int max = this.c - this.p; if (p <= max) { this.p += p; Console.WriteLine("P:{0}", this.p); } else Console.WriteLine("Error - P:{0}", p); } public void Dec(int p) { int max = this.c - this.p; if (p <= this.p) { this.p -= p; Console.WriteLine("P:{0}", this.p); } else Console.WriteLine("Error - P:{0}", p); } }

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