1
( , )
... 4
.. 6
1- .. 9
.. 9
. 9
. 10
. 11
.. 12
. 14
. 14
. 14
. 15
!!! . 16
. 17
. 18
() 19
if 20
. 22
. 23
. 24
. 26
, . 27
. 28
. 30
- . 30
||. 30
&&.. 31
. 32
. 33
. 33
2 ( ) 33
33
. 34
. 34
++: 35
.. 35
.. 36
( ) for 36
.. 38
.. 40
. 40
. 41
-. 41
-. 42
- () 43
-. 44
. 46
. 47
, , , . 47
. 48
, , . 48
. 49
. 49
. 50
. 51
.. 52
.. 52
.. 56
1- .. 58
( 1.1) 58
( 1.1) 61
( 2.2) 66
, . 70
( 2.3) 70
. 73
( 2.5) 73
( 3.1) 75
|
|
while, . 75
while, ++. 76
do while, . 78
for, . 78
( 3.3) 80
. 80
. 81
( 4.1, 4.2) 82
. 82
. 83
( 5.1.) 84
.. 85
/. 85
. 85
++. 91
++. 96
; . 98
. 99
. 99
. 100
. 100
. 102
. 103
. 104
. 104
. 107
. 109
. 111
. 112
. 113
switch. 114
. 117
. 117
.. 119
while .. 119
1 10. 119
100, , long. 119
do-while .. 120
1 10. 120
. 120
for .. 121
. 121
. 121
[k, m+k) 121
(0.0, 1.0) 122
, . 122
. 123
. 123
. 124
n . 124
N.. 124
, .. 124
. 125
.. 126
/. 127
/ . 127
/ ++. 133
. 135
.. 138
.. 140
1. ASCII- ( 0-127) 141
2. 866 MS-DOS. 142
3. 1251 MS Windows. 143
.. 144
1- . .. 144
() , , , . ++ ( ) ( ) . . 31 . () , .
|
|
:
( );
, , :
row ;
col ;
cur ;
max ( );
min ( );
;
:
char | 1 | c, ch | chGrade |
char[] | 1- | sz, str | szBuffer[] |
short | , , 2 | s | sIndex |
int | , , | n, i | nLength |
unsigned | , , | u | uSize |
long | , , 4 | l | lSum |
unsigned long | , 4 | ul | ulFreeSpace |
float | flt | fltResult | |
double | dbl | dblResult | |
long double | ldbl | ldblResult | |
void* | p | pDoc | |
void** | pp | ppDoc |
:
;
( ) _.
, , . ( ) , . (), .
. .
;
sizeof, !, ~, ++ , #, &, ) , *;
, ++ --.
. :
;
, , , ; , ; (, , );
. :
#include <locale.h>
setlocale (LC_ALL, ".1251"); // Windows
#include <locale.h>
setlocale (LC_ALL, "rus");
, (3 ), ,
; ( 70 ) ;
; ;
/* // ;
inline (//) ;
;
;
|
|
, #, ;
# include ( , ); .