首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

c语言队列

2012-08-03 
c语言队列求助typedef struct node{Item itemstruct node *next}Nodetypedef struct queue{Node * fron

c语言队列求助
typedef struct node
{
Item item;
struct node *next;
}Node;

typedef struct queue
{
Node * front;
Node * rear;
int items;
}Queue;

void InitializeQueue(Queue * pq);

在主函数中定义
  Queue line;
Item temp;
char ch;

InitializeQueue(&line);


为什么会报错呢?

[解决办法]
这样看,没啥问题
你可以贴更多代码,并且把错误帖出来才行
[解决办法]
没什么问题。

热点排行