()
2007
:
. . , . .
. / .., .. : , 2007.
/++. , , 6 .
, 2007 |
4
1. .. 4
1.1. . 4
1.2. . 9
1.3. . 10
2. 11
2.1. . 12
2.2. . 13
2.3. . 14
3. .. 17
3.1. . 17
3.2. . 17
3.3. . 19
4. .. 20
4.1. . 20
4.2. . 21
4.3. . 22
5. . .. 23
5.1. . 23
5.2. . 27
5.3. . 29
6. .. 30
6.1. . 30
6.2. . 32
6.3. . 35
. /++. 37
.. 39
.. 39
1. , , .
2. :
;
() ;
( ) ;
( ), ;
.
( , ).
1.
: , . .
/++ : , , , .
|
|
C : () ().
() (int), (float, double) (char) . , (short) (long), (signed) (unsigned). long double .
, (struct), (union) (enum).
n | 22 15 176 1925 | |
n. m | 1.0 3.125 0.001 | |
n. mE p n, m ×10 p | 1.01E10 0.12537 +4 | |
' * ' | ' A ' ' ' '0' '<' | |
****** | Minsk Press any key |
* , .
(, ..), , . (ID), , _ , ID .
! /++ , .. PI, Pi pi (. 1).
(), :
int k = 10, m = 3, n;
double c = 1.3, w = 10.23, s;
ID , , :
const double PI = 3.1415926;
double pi = 3.1415926;
ID , , , .
, /* */ // .
.
# (), . include define.
# include , :
#include <stdio.h> -;
#include <conio.h> ;
#include <math.h> .
# define () , :
#define PI 3.1415927
PI 3,1415927.
/ ++ (: +,,*,/,%) .1.
.
: ID = ;
, .. , ID, : y=(x+2)/(3*x)5;
|
|
, : x = y = z = 0;
z = (x = y) * 5; x y, x *5, z.
: ID = e;
+, , *, /, %;:
s += 7; (s = s+7;) y *= x+3; (y = y*(x+3));
, .
/++ (--) (++), .. 1. (++ i -- i) (i ++ i --). , ( i), . , , b = 7 n = 1 :
1) c = b *++ n; : n = n +1, c = b * n, .. c = 14;
2) c = b * n ++; : c = b * n, n = n +1, .. c = 7.
:
puts (S) S ;
rintf ( , );
, , ( \) , ;
(, , ). , .
% < > < . >
: () ( ); + () ;
( ), ;
;
.
:
%d (int); %c (char);
%s (string); %f float;
%ℓd ; %ℓf double;
%x ; %o .
(% \ ..) 2 , :
printf(" %d%% . \n",5);
:
5% .
: \ n ; \ t ; \ v ; \ b ; \ r ; \ a ; \ f ; \? .