In C++, there are expressions and statements. To put it simply, an expression is just an action that needs to be carried out, while a statement is an expression that has been ended by a semicolon. There are three types of statements in the C++ programming language:
In C++, statements can be grouped together into functions. Every C++ program must contain the function main(). This is because when any C++ program is first opened, it must know what instructions to first carry out. C++ programs always begin execution with the first statement in the main() function. Meanwhile, a C++ program always ends with the last statement in the main() function.
In the C++ language, there can be things called comments. Comments are placed within the characters /* and */. They are used to help clarify things to humans that are reading the language. For example, they could be used to clarify parts of the code or to identify a variable.
There are five major data types in C++ :
5. Long Double
C++ is a very advanced programming language. It would be impossible to briefly cover all aspects of this language. If you would like to learn more about C++, I would suggest going to your local library! There are tons of primers and tutorials about how to write in the C++ programming language!
1995-2001, ThinkQuest Inc.all rights reserved