Warning: Undefined array key 0 in /var/www/tgoop/function.php on line 65

Warning: Trying to access array offset on value of type null in /var/www/tgoop/function.php on line 65
94 - Telegram Web
Telegram Web
πŸ“Œ Omitting Namespace

β˜‘οΈYou might see some C++ programs that runs without the standard namespace library.

β˜‘οΈThe using namespace std line can be omitted and replaced with the std keyword, followed by the :: operator for some objects:

@c_programming_tut
Structure of C++

πŸ“ŒSyntax
Ways symbols may be combined to
create well-formed sentences.

πŸ“ŒSemantics
meaning of syntactically valid statement.

@c_programming_tut
Sample code
Basic elements of C++

0⃣ Reserved words

A reserved word is a word that cannot be used as an identifier, such as the name of a variable, function, or label

@c_programming_tut
1⃣ Identifier

is a name used to identify a variable, function, class, module, or any other user-defined item.

πŸ“ŒStart with a letter or underscore

πŸ“ŒConsist only of alpha-numeric symbols or the underscore symbol _

πŸ“ŒNot be a reserved word

@c_programming_tut
2⃣ Comments
a piece of descriptive text which explains some aspect of a program.

Comments can be used to explain C++ code, and to make it more readable. It can also be used to prevent execution when testing alternative code.

βœ…Single-line comments //

βœ…Multi-line comments /* */

@c_programming_tut
Data types

A data type specifies the type of data that a variable can store such as integer, floating, character etc
Operators

Operators in C++, An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations.

πŸ“ŒOperators in C++ can be classified into 7 types

@c_programming_tut
C++ IDEπŸ‘†
2025/07/04 20:50:04
Back to Top
HTML Embed Code: