Process exited after 8.127 seconds with return value 3221226356,求解决方案!

博主在Dev-C++环境中运行C语言程序时遇到返回值3221226356的问题,程序运行结束前有明显卡顿。通过注释代码发现去掉特定部分后返回值变为0,但原因不明。同时,博主还提到在优快云复制代码时遇到缩进问题。

求助!

我在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语言,但是在那边向优快云里边复制代码的时候这个缩进就很不理想,有大佬能解决吗?

评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值