, , . .
. , . (). , (), , .
, . , . ( ).
struct Node{ 1nt d; Node *next; Node *prev; }; |
. . . , , :
, , . .
push, pop. (top) .
#1nclude <1ostream.h>struct Nocle{ 1nt d; Node *p; }; Node * firstdnt d); void pushCNode **top. int d); int pop(Node **top); |
, , . , , , , /.
#include <iostream.h> struct Node{ 1nt d: Node *p: }: Node * firstdnt d): void addCNode **pend. int d): int del(Node **pbeg): |
, , , , . . . 10.1 . , , . , . , . , , - , .
. 10.1
|
|
, . .
, , [1, 3].
.
a) :
1. . . . C/C++. . - .: , 2003. - 461 .
) :
2. / .. , .. . - 2005.
3. C++/ - 2007. 1104.
) :
4. .., .. C++. . - .: (), 2015. - 48 .
5. . . ++ - -, 2005. 281.
:
1) .
2) .
3) ?
4) ?
5) .
6) , .
7) , .
8) , .
9) , .
10) , .