A small description of C++.
You may have heard of it in a song! You may know somebody who uses it! You may not have even heard of it until now! But regardless of when you heard about it, or how you did, if you don’t know what it is, you probably want to know! C++ is a programming language.
What is a programming language? Programming languages are languages that computers understand. In the case of C++, you are using commands that are closer to english than computer language, of binary digits, to make .exe files. One well-known example of a .exe file is firefox.
Why would anybody use C++? Well, C++ is a highly advanced programming language. For example, the following code will make a program that will tell you “Please insert a number between 1 and 10″, wait for a response, and then tell you what the number squared is:
#include
using namespace std;
int main()
{
double a,b;
a=0;
b=0;
cout << “Please insert a number between 1 and 10″ << endl;
cin >> a;
b=a*a;
cout << a << ” squared is:” << b << endl;
}
As you may notice, there are some words identical to english words, such as “include” , “using”, “main” and “double”. There are also words that have letters at the begining, or end, that when taken off, leave you with english words. In the exaple there are “ioSTREAM” , “cIN”, “cOUT” and “ENDl”.
In conclusion, C++ is a useful programming language to those who learn how to use it. It is also pretty easy to learn, in comparison to most programming languages.










Leave Your Response