online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/*************************************************************** * Name: Prof. Rafael Orta * Course: Computer Science & Programming * Class: CS04225 ***************************************************************** * Purpose: Demonstrate the use of data Structures (Arrays) *****************************************************************/ #include <iostream> #include <array> // Using the array class. using namespace std; int main() { // Defining an array 1 of one dimension and assigning values to it. string carMakers [10] = {"Volswagen","Toyota","Renault-Nissan","Hyunday-Kia","General Motors","Ford","Suzuki","PSA","Fiat Chrysler","Honda"}; cout << "Below is the list of the top 10 automobile makers in the world:" << endl; cout << "---------------------------------------------------------------\n\n"; for (int x=0 ; x<10 ; x++){ cout << x+1 << "- " << carMakers[x] << endl; } // Defining an array 2 of one dimension and assigning values to it. /* array<string,10> carMakers2 = {"Volswagen","Toyota","Renault-Nissan","Hyunday-Kia","General Motors","Ford","Suzuki","PSA","Fiat Chrysler","Honda"}; cout << "\n\nThe array size is: " << carMakers2.size() << endl; for (int x=0 ; x<10 ; x++){ cout << x+1 << "- " << carMakers2[x] << 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