求助!
我在Dev-c++里运行C语言结果运行正常但结尾是这个
Process exited after 8.127 seconds with return value 3221226356
而且在运行结束到出现上面这行字符前会卡顿好久。
具体代码如下(这个是还未完工的,这个主函数目前主要是为了测试其他部分是否正确)
#include <stdio.h>
#include <stdlib.h>
typedef struct Node{
int data;
struct Node *next;
}Node,*Link;
int main(){
Link head;
head = list(head);
judge(head);
judge(head);
output(head);
length(head);
gainElement(head);
gainLocation(head);
before(head);
after(head);
insert(head);
output(head);
reLocation(head);
output(head);
clean(head);
judge(head);
length(head);
destroy(head);
return 0;
}
然后我就发现了一个奇怪的地方,当我把主函数中clean(head)和destroy(head)两个函数之间的东西注释掉,这个返回值就莫名其妙归零了!所以我这个问题算是解决了????
但我还是不知道为啥啊,这样下次不还是会有这样的错误了吗?
。。。。。。
int main(){
Link head;
head = list(head);
judge(head);
judge(head);
output(head);
length(head);
gainElement(head);
gainLocation(head);
before(head);
after(head);
insert(head);
output(head);
reLocation(head);
output(head);
clean(head);
/*
judge(head);
length(head);
*/
destroy(head);
return 0;
}
而且,我是用Dev c++写的C语言,但是在那边向CSDN里边复制代码的时候这个缩进就很不理想,有大佬能解决吗?
更多推荐
Process exited after 8.127 seconds with return value 3221226356,求解决方案!
发布评论