mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 21:24:53 +08:00
docs(codes/c): add function description
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user