.


:




:

































 

 

 

 





- ᒺ , , , , .

. , . .

: ; , ; .

:

struct _ {

1 1;

2 2;

n n;

} _;

. stud

struct stud {

char name[80];

int age;

double b;

} st1, st2;

stud Ivan,Petr; // Ivan, Petr stud

. 8.1 st1 .

 
 


st1  
 

 

name       80
age       2
b       8

8.1 ij , st1

, st1 86

, . :

stud st1={Ivanov, 20, 4.6};

.

_.__

:

st1.name=Ivan;

st1.age=20;

gets(st2.name);

for (int t=0; st1.name[t]; t++) cout<<st1.name[t];

++ , .

:

struct tt{

int a, b;} var1, var2;

var1=var2;

++ , .

_ * __;

:

stud *pStud;

pStud=&st1;

++ , , >.

pStud>age;

:

(*_).__

. record :

record *prior ;

record *next .

ᒺ.

ᒺ , . ᒺ :

 

union _ (

1 1;

2 2;

- - - - - - - - - -

N N;

} _;

 

:

union { long L; int il, i2; char [4]; } UNI;

 

³ ᒺ ᒺ :

 

_._

__ᒺ->_

(*__ᒺ)._

1. ?

2. ( ) , ‑ , , .

3. (*str).alpha ?

4. ?

5. , .

6. struct x{int x,y;double z[2];}x;?

7. '

struct{int alfa;

int a: 5;

int b: 3;

char ch;}record;

8. . .

9. ' (union)? ' '?

10. ' '

union{long word;

char delta;

int number;

char gamma[4];}UN;

11. '?

12. '?

13. ?

14. ?

15. , 40 , .

16. " " &?


˳

 

1. .., .., .., .. . .:, 1988. 224.

2. .. /C++. . .: , 2003. 461.

3. .. : . / .. , .. . .: , 2002. 240.

4. . : . ./. , . . 2- ., . . .: , 2006. 304.

5. .., .., .. ++: . / . . .. . 2- ., . .: , 2006. 344.

6. .. ++ Builder: . ./ .. , .. , .. . .: ., 2003. 192.

7. .. . : . , - .: , 2006. 440.

8. . ++. .: , 2006. 496.

9. . /++: . 2- . .: , 2000. 447.

10. .. /++ . .: , 2005. 288.

11. .. .. ++: . .: , 1999. 1022.

12. . ++: 10 . 2- . .: . , 2004. 352.

13. .. ++. . 2- . . . .: - , 2001. 479.

14. . . : , 2001. 256.

15. . ++. . .: , 2004. 220.



 

̳ ,

 

 

 

1

 

()

. . -312 ..

 

 

 

..

. . ..

. ..

 

 

, 2012






:


: 2017-02-25; !; : 381 |


:

:

- , .
==> ...

1930 - | 1725 -


© 2015-2024 lektsii.org - -

: 0.014 .