C/C++的程序,编译过程没有提示存在错误,但是在执行时却无法正常运行,请大家帮忙看看是什么问题??
答案:1 悬赏:60
解决时间 2021-02-15 02:46
- 提问者网友:樱花树下最美的约定
- 2021-02-14 22:29
C/C++的程序,编译过程没有提示存在错误,但是在执行时却无法正常运行,请大家帮忙看看是什么问题??
最佳答案
- 二级知识专家网友:野性且迷人
- 2021-02-14 23:58
#include "iostream.h" struct node { char date; struct node *next; }; struct node *create(int n) { struct node *head,*newnode; int i; char x; head = new node; head->next = NULL; for(i=0;i>x; newnode=new node; newnode->date = x; newnode->next=head; head=newnode; } return head; } void main() { struct node *p,*head; int n,s=0; cin>>n; head=create(n); p=head; while(p->next !=NULL) { cout<date<<'\t'; if('A'<=(p->date) && (p->date)<='Z') s++; p=p->next; } cout<
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯