结构节点
{
int data;
struct node *next;
} *start=NULL;
void create () )
{
char ch;
do
{
struct node *new_node,*current;
new_node=(structnode* ) malloc ) sizeof ) structnode );
打印((nenter the data : ) );
scanf('%d ',new_node-data );
new_node-next=NULL;
if (start==空) )。
{
start=new_node;
current=new_node;
}
else
{
current-next=new_node;
current=new_node;
}
打印(ndoyouwanttocreatanother : );
ch=getch (;
}while(ch!='n ';
}
尝试internet上的编译器后,得到了执行此代码的代码部分。 未定义的引用getch collect2:错误: 1D返回1退出状态
你怎么解决这个问题?请帮帮我
2015-12-15
Tannia