C++ was based on the classic C langauge, which in turn was based on the ancient B. No A ever existed.
Until Visual Basic came out, C++ was the most used langauge.
Here's what the C++ shell would look like:
#include <iostream.h>
void main {
cout << "Hello, World!!!" << endl;
return 0;
}
As you saw in the last section, the cout statment is used to print to the screen.
The text you want to print will be enclosed in quotes like the "Hello World!!!" in the last example.
Variables are also used in C++. To declare a variable use the following code:
int number //declare a integer char sentence() //declare a stringTo input variables use the cin statment. Cin takes the following syntax:
cin >> name>> endl;
Here's some sample C++ games: