0x00AE18F8 处有未经处理的异常: 0xC0000005: 读取位置 0x00000020 时发生访问冲突。
2014-08-01 11:58
323 查看
代码如下:
#include<stdio.h>
#include<string.h>
struct DON_STUD_STR
{
long num;
char name[20];
float score;
int mark;
struct DON_STUD_STR * next;
};
这个函数为什么老是出错
struct DON_STUD_STR * DON_STUD_BRO(struct DON_STUD_STR *head)
{
struct DON_STUD_STR * p1;
p1 = (struct DON_STUD_STR *)malloc(sizeof(struct DON_STUD_STR));
p1 = head->next;
while (p1 != NULL)
{
printf("%-20s%-20s%-20s%-20s", "选好", /*"名字",*/ "成绩", "标记");
printf("%-20d\n", p1->num);
//printf("%-20d\n", p1->name);
printf("%-20f\n", p1->score);
printf("%-20d\n", p1->mark);
p1 = p1->next;
}
return(head);
}
#include<stdio.h>
#include<string.h>
struct DON_STUD_STR
{
long num;
char name[20];
float score;
int mark;
struct DON_STUD_STR * next;
};
这个函数为什么老是出错
struct DON_STUD_STR * DON_STUD_BRO(struct DON_STUD_STR *head)
{
struct DON_STUD_STR * p1;
p1 = (struct DON_STUD_STR *)malloc(sizeof(struct DON_STUD_STR));
p1 = head->next;
while (p1 != NULL)
{
printf("%-20s%-20s%-20s%-20s", "选好", /*"名字",*/ "成绩", "标记");
printf("%-20d\n", p1->num);
//printf("%-20d\n", p1->name);
printf("%-20f\n", p1->score);
printf("%-20d\n", p1->mark);
p1 = p1->next;
}
return(head);
}
相关文章推荐
- 中的 0x00833257 处有未经处理的异常: 0xC0000005: 读取位置 0x00000020 时发生访问冲突
- (转载)0x0F1AFD76 (libcocos2d.dll) (Plane.exe 中)处有未经处理的异常: 0xC0000005: 读取位置 0x00000018 时发生访问冲突。
- 0x0fad13af (msvcr100d.dll) 处有未经处理的异常: 0xC0000005: 读取位置 0x00000002 时发生访问冲突
- 0x0F1AFD76 (libcocos2d.dll) (Plane.exe 中)处有未经处理的异常: 0xC0000005: 读取位置 0x00000018 时发生访问冲突。
- ...... 处有未经处理的异常: 0xC0000005: 读取位置 0xcccccccc 时发生访问冲突
- XXX.exe 中的 0x5404723c (msvcr100d.dll) 处有未经处理的异常: 0xC0000005: 读取位置 0xfeeefee8 时发生访问冲突
- 【语言-C++】Image - .exe 中的 0x0043a998 处有未经处理的异常: 0xC0000005: 读取位置 0x029d846c 时发生访问冲突
- Qt 数据库 0x00bf56f7 处未处理的异常: 0xC0000005: 读取位置 0x00000000 时发生访问冲突
- 处有未经处理的异常: 0xC0000005: 读取位置 0xcccccccc 时发生访问冲突
- 在调试时出现:~处有未经处理的异常: 0xC0000005: 读取位置 0xcccccccc 时发生访问冲突
- 0x00007FF7C49A4C42 处有未经处理的异常:0xC0000005: 读取位置 0x000001481A2D86C4 时发生访问冲突
- 有未经处理的异常: 0xC0000005: 读取位置 0xFFFFFFFC 时发生访问冲突
- XXX中的 0x77da15de 处未处理的异常: 0xC0000005: 读取位置 0x00000001 时发生访问冲突
- 0x5afd57aa处有未经处理的异常:0xC0000005:读取位置0xcdcdcdc1时发生访问冲突
- 10_2_4.exe 中的 0x00b0d00a 处有未经处理的异常: 0xC0000005: 读取位置 0xccccccc0 时发生访问冲突
- xx.exe 中的 0x014180bd 处有未经处理的异常: 0xC0000005: 读取位置 0xfeeefeee 时发生访问冲突(当指针访问异常时,应考虑是不是对象未创建)。
- OSG 有未经处理的异常: 0xC0000005: 读取位置 0xcdcdcdcd 时发生访问冲突
- 有未经处理的异常: 0xC0000005: 写入位置 0x01260000 时发生访问冲突
- 0x00881789 处的第一机会异常(在 receive_filter.exe 中): 0xC0000005: 读取位置 0x00000000 时发生访问冲突。
- C/C++ 错误处理(文档):未处理的异常: 0xC0000005: 读取位置 0x00000000 时发生访问冲突