📄 mynode.h
字号:
#ifndef _MYNODE_H#define _MYNODE_H#define MAXQUEUE 1000/* Define node and node_ptr type */typedef struct node *node_ptr;struct node{ int to_vertex; node_ptr next;};/* Function to create an empty list */node_ptr create(void);/* Function to return dynamically allocated memory in list */void destroy(node_ptr list);/* Function to insert n at front of list */void insert_at_front(int n, node_ptr list);/* Function to print list */void print(node_ptr list);/* Function to insert n in (non-decreasing) order in list - assuming list items are already in (non-decreasing) order. */void insert_in_order_node(int n, node_ptr list);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -