700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > c语言打不开h文件 说那个“mem.h”头文件打不开 怎么改啊 高手们帮帮忙

c语言打不开h文件 说那个“mem.h”头文件打不开 怎么改啊 高手们帮帮忙

时间:2019-06-01 02:57:53

相关推荐

c语言打不开h文件 说那个“mem.h”头文件打不开 怎么改啊 高手们帮帮忙

该楼层疑似违规已被系统折叠隐藏此楼查看此楼

#include"stdio.h"

#include"stdlib.h"

#include"string.h"

#include"conio.h"

#include"mem.h"

#include"ctype.h"

#include"alloc.h"

structscore

{

chargukehao[8];

charmingzi[20];

floatscore[6];

}data,info[1000];

inti,j,k=0;

floatn;

chartemp[20],ch;

FILE*fp,*fp1;

voidluru()

{

if((fp=fopen("s_score.txt","ab+"))==NULL)

{

printf("cannotopenthisfile.\n");

getch();exit(0);

}

for(i=0;i>=0;i++)

{

printf("Pleaseinputgukehao:");

gets(data.gukehao);

printf("pleaseinputmingzi:");

gets(data.mingzi);

printf("Pleaseinputxiaofei:");

gets(temp);data.score[0]=atof(temp);

if(data.score[0]<=5000)

n=1;

else

if(data.score[0]<=10000&&data.score[0]>5000)

n=0.95;

else

n=0.9;

fwrite(&data,sizeof(data),1,fp);

printf("another?(inputntomain/anykeytocontinue)\n");

ch=getch();

if(ch=='n'||ch=='N')

break;

}fclose(fp);

}

voidxiugai()

{

if((fp=fopen("s_score.txt","rb+"))==NULL||(fp1=fopen("temp.txt","wb+"))==NULL)

{

printf("Cannotopenthisfile.\n");

exit(0);

}

printf("\nPleaseinputshuruxiugaigukehao:");

scanf("%d",&i);getchar();

while((fread(&data,sizeof(data),1,fp))==1)

{

j=atoi(data.gukehao);

if(j==i)

{

printf("gukehao:%s\nmingzi:%s\n",data.gukehao,data.mingzi);

printf("Pleaseinputmingzi:");

gets(data.mingzi);

printf("Pleaseinputxiaofei:");

gets(temp);data.score[0]=atof(temp);

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。