1. .. 4
1.1. . 4
1.2. . 8
1.3. . 11
1.4. . 12
1.5. . 15
2. .. 17
2.1. . 17
2.2. . 18
2.3. . 19
2.4. . 22
3. .. 24
3.1. . 24
3.2. . 25
3.3. . 27
4. .. 29
4.1. . 29
4.2. . 30
4.3. . 32
5. .. 33
5.1. . 33
5.2. . 33
5.3. . 34
5.4. . 37
6. .. 38
6.1. . 38
6.2. . 40
6.3. . 43
7. .. 44
7.1. . 44
7.2. . 44
7.3. . 46
7.4. . 48
8. .. 49
8.1. . 49
8.2. . 51
8.3. . 51
8.4. . 58
9. .. 60
9.1. . 60
9.2. . 61
9.3. . 64
1. .. 65
2. .. 67
.. 69
1.
: , , C++ B uilder. () .
/++ : , , .
C : () ().
() (int), (float, double) (char) . , (short) (long), (signed) (unsigned). long double .
, (struct), (union) (enum).
|
|
++ bool , true (1) false (0) , AnsiString (String) (. .7.2).
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 .
(), :
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.
C++ Builder
B uilder , . , , . B uilder , . 1.1.
. . . , (), . , , , , , ..
( F 11) . Properties () , Events () , , .
Windows - , , , .
( Unit 1. cpp), , . , Windows -.
B uilder , , , , , OnClick, OnCreate.
Events -, { } .
F 12.
C++ Builder
B uilder , Project 1. bpr, , B uilder .
, Unit 1. cpp.
, () - () , , , . h. .dfm. , .
|
|
! , : *. bpr, *. h, *. cpp, *. dfm.
: (Unit 1. cpp), (Project 1. cpp), (Unit 1. h) . 2.
, , , . , , .
(F 11) Caption, F orm 1 , , ..1. .610101 ..
! Name () aption () , , .. .