mirror of
https://github.com/krahets/hello-algo.git
synced 2025-02-03 07:01:55 +08:00
docs(codes/c): add function description
This commit is contained in:
parent
dceae63f38
commit
81cdf1d530
@ -16,7 +16,7 @@ struct mylist {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef struct mylist MyList;
|
typedef struct mylist MyList;
|
||||||
/* 声明函数 */
|
/* 前置声明 */
|
||||||
void extendCapacity(MyList* l);
|
void extendCapacity(MyList* l);
|
||||||
|
|
||||||
/* 构造函数 */
|
/* 构造函数 */
|
||||||
|
@ -13,7 +13,7 @@ struct LinkedListStack {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef struct LinkedListStack LinkedListStack;
|
typedef struct LinkedListStack LinkedListStack;
|
||||||
|
/* 构造函数 */
|
||||||
void constructor(LinkedListStack* stk) {
|
void constructor(LinkedListStack* stk) {
|
||||||
stk->stackTop = NULL;
|
stk->stackTop = NULL;
|
||||||
stk->stkSize = 0;
|
stk->stkSize = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user