.


:




:

































 

 

 

 


. , ,




 

, , . .

, .

struct __

{

_;

struct __ *;

}

, .

 


beg

 

 

:

1.

struct point

{int key;

point* next;

};

key point, next .

2.

point* make_point(int n)

{

point *first, *p;

first=NULL;

for (int i=n;i>0;i--)

{

p=new(point);

p->key=i;

p->next=first;

first=p;

}

return first;

}

, . . , ->. : (*p).key (*p).next. key . .

3.

point* print_point(point*first)

{

if (first==NULL)return NULL;

point*p=first;

while(p!=NULL)

{

cout<<p->key<<" ";

p=p->next;

}

return first;

}

, NULL.

 

, .

:

1. .

2. ( ).

3. ( ).

4. .

5. .

6. .

7. .

 

1. . , .

2. . , .

3. .

4. .

5. .

6. .

7. , ( " ").

8. .

9. .

10. .

 

1. int. . , ;

2. int. . , ;

3. int. . , , ;

4. int. . , , ;

5. int. . , , , ;

6. int. . , .

7. . , .

8. int. . , .

9. int. . , .

10. int. . , .

11. *char( ). . , .

12. *char( ). . , . .

13. *char( ). . . , .

14. *char( ). . . .

15. *char( ). . . .

16. *char( ). . . .

17. *char( ). . . .

18. *char( ). . . .

19. *char( ). . . .

20. *char( ). . . .

21. *char( ). . . .

22. *char( ). . . .

23. *char( ). . . .

24. *char( ). . . .

25. *char( ). . . .

 

1. .

2. .

3. main().

4. .

 

 

1. . ., . . : . . .: , 1998.600.

2. . . ++: . ..: , 1996.560.

3. . ++: . . .: , 1991.-352.

 





:


: 2016-03-28; !; : 540 |


:

:

, , 1:10
==> ...

1658 - | 1584 -


© 2015-2024 lektsii.org - -

: 0.016 .