++ , , :
class new inline try
private delete operator catch
public this template throw
protected friend virtual
++ (, ) char, ++ int:
aB, \n\t.
, − .
++ :
:: − ;
.* ->* − ;
new delete − .
, .
++ , . , : .
: .
++ . , . . . :
#include <iostream>
using mamespace std;
int sm(int i1, int i2, int i3=0, int i4=0)
{ cout<<i1<< <<i2<< <<i3<< <<i4<< ;
return i1+i2+i3+i4;
}
int main()
{ cout <<" = "<< sm(1,2) << endl;
cout <<" = "<< sm(1,2,3) << endl;
cout << " = "<< sm(1,2,3,4) << endl;
return 0;
}
:
1 2 0 0 = 3
1 2 3 0 = 6
1 2 3 4 = 10
( ). .
++ . ( ) − , -. . .
( ), iostream.h:
cin − ;
cout − ;
cerr − ;
clog − .