Professional Documents
Culture Documents
CPP Declaration
CPP Declaration
Include Files
Class Definition
int main() {
Starts definition of special function
main()
cout << "Hello World\n";
output (print) a
string
return 0;
Program returns a status
} code (0 means OK)
PREPROCESSING
Temporary file
C++ (C++ program) C++
Preprocessor Compiler
Executable
C++ Program Program
C++ LANGUAGE
C++ Program is a collection of
Tokens
Comments
White Space
C++ TOKENS
RESERVED KEYWORDS
IDENTIFIERS
LITERALS
OPERATORS
SEPARATORS
RESERVED KEYWORDS
Programmer-designed tokens
Meaningful & short
Long enough to understand
Control
stmt
If contin
If switch while do for break
ue
return
else