玩宝全文阅读:程序错误但是怎么了改不了
来源:百度文库 编辑:高考问答 时间:2024/05/30 20:12:09
#include"stdio.h"
#include"conio.h"
/*typedef struct
{char name[10];
char num[12];
float eng;
struct student *next;
}P; */
struct student
{char name[10];
char num[12];
float eng;
struct student *next;
};
main()
{
struct student *point;
point=(struct student *)malloc( sizeof(struct student) );
puts("name:");bioskey(0);
scanf("%s",&point->name);
printf("\nnum:");
gets(point->num);
printf("\neng:");
scanf("%f",&point->eng);
printf("input finish!");
bioskey(0);
printf("%s %s %f ",point->name,point->num,point->eng);
printf("successfully" );
getch();
}
#include"conio.h"
/*typedef struct
{char name[10];
char num[12];
float eng;
struct student *next;
}P; */
struct student
{char name[10];
char num[12];
float eng;
struct student *next;
};
main()
{
struct student *point;
point=(struct student *)malloc( sizeof(struct student) );
puts("name:");bioskey(0);
scanf("%s",&point->name);
printf("\nnum:");
gets(point->num);
printf("\neng:");
scanf("%f",&point->eng);
printf("input finish!");
bioskey(0);
printf("%s %s %f ",point->name,point->num,point->eng);
printf("successfully" );
getch();
}
哎,已经不玩它了。。
我好像也是一样哦
好像已经不玩它了。