a .. z
A .. Z
0 .. 9
! # % ^ & * ( ) - _
+ = ~ [ } \ | ; : '
" { } , . < > / ?
! % ^ & * - + = ~ | . < > / ? : -> ++ -- << >> <= >= == != && || += -= *= /= %= <<= >>= &= ^= |= -> ::
( ) [ ] { } , ; :
and a blank.
1.0 1.0e3 2e+9
\n newline \t horizontal tab \v vertical tab \b backspace \r carriage return \f formfeed
x++
x++:
{
x++;
y--;
}
function_name (formal argument list)
{
body of function
}
Every C++ program
MUST have at least one function called main.
This function receives control from the Operating system and is executed first.
The simplest program given in most C++ texts is the ubiquitous Hello World.
#include <iostream>
using namespace std;
void main()
{
cout << "Hello World" << endl;
}
| © Allan Kochis |