.


:




:

































 

 

 

 


(Toolbox),




26) .
C++Builder , :

- , , .., . , - .

- ( , ).

C++Builder TGraphic :

o TBitmap,

o Ticon,

o TMetafile.

(TPicture) , . , TPicture , , , , TPicture.

, Windows . - TPicture , , , - TBitmap.

, Borland ++ Builder Windows GDI . , Canvas (), , . . ( , , , ) - - .

27. , . . : , .

"" . , . C++ , , . , .

 

28. : . , - .

*pn = 5n = *pn; : , , . int &ra = a; // (ra)

29. - ( ), , , - . , . , , , , , , . ., , . , , - , ..

( )

: ,

: , , ,

: ,

 

30. , , . . , , . .

, . , . .

. , . ( ) . .

 

31. - .

, , .

, .

.

.

 

32. ...

 

33.

A, f(int), B, A, f(long):

struct A
{
void f(int);
};
struct B: A
{
void f(long);
};

:

B b;
b.f(1);

f(long) B, , A f(int). , f(int) A . , f(int), using A::f; B:

struct B: A
{
using A::f;
void f(long);

 

34. float i;

...

FloatToStrF(i,ffGeneral,7,3);

// 7 ( ) 3 .

 

 

35. , char*. :

char w[] = ""; char *ww = ""; .


. , , w[3] , .

( char, ):

sircat (1, 2) - () ;

strcpy ( 1, 2) ;

strlen () - ( );

strstr ( 1, 2) ( NULL - , 2 1);

AnsiStrLower () - ;

AnsiStrUpper () - .

: Str, .

AnsiString oldStr = "";

AnsiString newStr = "";

AnsiString res;

res = oldStr.Insert (newStr, 3);

// s=""

36. , . . : , .

"" . , . C++ , , . , .

 

37. : . , - .

*pn = 5n = *pn; : , , . int &ra = a; // (ra)

38. - ( ), , , - . , . , , , , , , . ., , . , , - , ..

( )

: ,

: , , ,

: ,

 

39. , , . . , , . .

, . , . .

. , . ( ) . .

 

40. - .

, , .

, .

.

.

 

41. ...

 

42.

A, f(int), B, A, f(long):

struct A
{
void f(int);
};
struct B: A
{
void f(long);
};

:

B b;
b.f(1);

f(long) B, , A f(int). , f(int) A . , f(int), using A::f; B:

struct B: A
{
using A::f;
void f(long);

 

43. float i;

...

FloatToStrF(i,ffGeneral,7,3);

// 7 ( ) 3 .

 

 

44. , char*. :

char w[] = ""; char *ww = ""; .


. , , w[3] , .

( char, ):

sircat (1, 2) - () ;

strcpy ( 1, 2) ;

strlen () - ( );

strstr ( 1, 2) ( NULL - , 2 1);

AnsiStrLower () - ;

AnsiStrUpper () - .

: Str, .

AnsiString oldStr = "";

AnsiString newStr = "";

AnsiString res;

res = oldStr.Insert (newStr, 3);

// s=""

 





:


: 2016-07-29; !; : 407 |


:

:

80% - .
==> ...

1537 - | 1386 -


© 2015-2024 lektsii.org - -

: 0.045 .