++ - : ., ++, ( ). , ++, , .. , , , , .. . , , .
++.
++ :
;
0, 1, 2, 3, 4, 5, 6, 7, 8, 9;
:
{}, | [] () + = / % \; :? < = > _! & # ~ ^. *
:
;
(, ) ;
;
;
( ).
++ , , , .
() , , :
Array, point1, a, point_2, Point_2, refer
. . Borland 32- .
() , . ++:
asm | double | New | Switch |
Auto | else | operator | template |
Break | enum | private | this |
Case | extern | protected | throw |
Catch | float | public | try |
Char | for | register | typedef |
Class | friend | return | typeid |
Const | goto | Short | union |
continue | if | signed | unsigned |
default | inline | sizeof | virtual |
Delete | int | Static | void |
Do | long | Struct | volatile |
while |
Borland :
Cdecl | _export | _loads | _saveregs |
_cs | far | Near | _seg |
_ds | huge | Pascal | _ss |
_es | interrupt | _regparam |
:
_AH | _BH | _CH | _DH | _SI | _SP | _SS |
_AL | _BL | _CL | _DL | _DI | _CS | _ES |
_AX | _BX | _CX | _DX | _BP | _DS | _FLAGS |
, , (__), ++ . , (_), . , .
|
|
++. , , , , , - , - . , , , , .. .
() ( ):
har ();
short ( );
int ();
long ( );
float ();
double ( );
void ( ).
signed ( N N-1), unsigned ( - 0 2*N-1), . , .., , signed int int , signed . , unsigned , . unsigned int signed int int , .
, , long double, double.
, char, short, int, long, signed, unsigned, float, double, void, (, ).
++ . enum , .
2.1
unsigned char | 1 | 0255 | |
har | 1 | -128127 | ASCII |
enum | 2 | -32768 32767 | |
unsigned int | 2 | 0 65535 | |
short int | 2 | -32768 32767 | , . |
int | 2 | -32768 32767 | , |
unsigned long | 4 | 04294967295 | |
long | 4 | -2147483648...2147483648 | , |
float | 4 | 3.4E-383.4E+38 | (7 ) |
double | 8 | 1.7E-3081.7E+308 | (15 ) |
long double | 10 | 3.4E-49323.4E+4932 | (19 ) |
. 2.1 , , char , 1 128 127. ASCII .
, . , 2147483648 , 0.789 . , long , float. long float .
|
|
() ():
unsigned char sym; /* sym unsigned char. , 1 0 255 (. . 2.1). Sym () . , . */
char Sm 1, Sm 2, Sm 3 = 50; /* char ( . . 2.1). Sm1, Sm2, Sm3 () . Sm3 50 int. Sm1, Sm2 , . . . */
double pi = 3.14159; /* pi double. 3.14159 double. . */
. , , , .
, , .
: , ( ), , .
, .
, .
, , . BC++ 3.11 0 4294967295. , , . , . BC++ 3.11 2147483647.
. 2.2 , . , , 0 32767, int.
2.2