编译不过,怎么会回事?
2015-10-24 17:34
399 查看
#include <stdio.h> typedef struct node { char info; struct node *next; }headlink; void main() { headlink *head; head=creat(); print(head); getch(); } headlink *creat() { headlink *head, *p; char c; head=NULL; while((c=getchar())!='\n') { p=(headlink *)malloc(sizeof(headlink)); p->info=c; p->next=head; head=p; } return (head); } void print(headlink *head) { headlink *p; p=head; while(p) { putchar(p->info); p=p->next; } }编译不过,怎么会回事?看不出那里错了,帮忙看看!
相关文章推荐
- AI顶级会议以及期刊
- 动手动脑
- [转]Android Studio开发入门-引用jar及so文件
- HDU1412
- 卢梭和他《社会契约论》
- POI导出excel
- centos中使用docker创建mysql容器
- Unity3d本地存储
- 自定义消息响应函数
- 安装系统的方法
- bootstrap中的carousel插件
- Unity3d本地存储
- 软件架构师应该知道的97件事之概括61-75
- 三、武器射击和自动射击
- poj 1068 Parencodings 模拟
- Jump Game II-贪心算法
- LA 3983 捡垃圾的机器人
- Array Programming Guide
- 51nod 1082 与7无关的数 (打表)
- word vba遍历文件,打开另外word修改保存