📄 subject_59838.htm
字号:
<p>
序号:59838 发表者:dprk 发表日期:2003-11-10 17:16:13
<br>主题:我的一个小程序,通过了编译,但BUILD出错,请大家指教!谢谢!
<br>内容:#include<iostream.h><BR>#include<stdlib.h> <BR>#include<malloc.h><BR><BR>typedef struct qnode{<BR>int data;<BR>struct qnode *next;<BR>}qnode, *qpoint;<BR><BR>typedef struct<BR>{qpoint front;<BR> qpoint rear;<BR>}linkqueue;<BR><BR>void inique(linkqueue); //initiate a empty queue<BR><BR>void main()<BR>{ <BR> linkqueue l;<BR> l.front=l.rear=(qpoint)malloc(sizeof(qpoint));<BR> inique(l);<BR>}<BR><BR>void inique(linkqueue &l) //initiate a empty queue<BR>{//l.front=l.rear=(qpoint)malloc(sizeof(qpoint));<BR> <BR> if (!l.front) exit(1);<BR> l.front->next=NULL;<BR> cout<<"ok"<<"\n";<BR>}<BR>2003-11-10 17:17:19
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -