程序测试程序(配合游戏及学习控制管理器使用)

程序测试程序(配合游戏及学习控制管理器使用),第1张

程序测试程序(配合游戏及学习控制管理器使用),第2张

有了游戏控和学习控,就可以通过测试获得游戏积分。

/*test.ini(可以自行添加修改试题,按照评论中的格式添加即可)*/


;= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
;= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Post
测试文件夹
D:\TEST\
测试总数
2
;测试记录
;格式:
;原标题
;请计算标准输出数据
:已知:Q = 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10,P = 1+2+3+4+5+6+7+8+9+10,M = Q/P,sum。==================================================================

/*测试记录试题是否通过*/

1 1

/*test.c主程序,请用gcc编译(比如在DEV-CPP环境下)*/
# include
# include
typedef struct
{
char describe[1000];
char回答[100];
}数据;
数据s[20];
char path[100];
int testnum;
char s _ p[20];
char password[20];
int points;
int copy(char *infile,char * outfile)
{
FILE * input,* output
char temp;
if(strcmp(infile,outfile)!=0 && ((input=fopen(infile," rb "))!=NULL) && ((output=fopen(outfile," wb "))!=NULL))
{
while(!feof(input))
{
fread(& temp,1,1,input);
fwrite(&temp,1,1,output);
}
f close(input);
fclose(输出);
返回0;
}
否则返回1;
}
int init test()
{
FILE * input,* output
int I;
char temp[80];
input=fopen("test.ini "," r ");
output=fopen("test.tmp "," w ");
while(!feof(输入))
{
fgets(temp,80,input);
if(temp[0]!=';')fputs(temp,output);
}
f close(input);
fclose(输出);
input=fopen("test.tmp "," r ");
fscanf(输入,“%s”,路径);
fscanf(输入," %d ",& testnum);
for(I = 0;i fclose(输入);
input=fopen("test "," r ");
for(I = 0;i fclose(输入);
}

位律师回复
DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
白度搜_经验知识百科全书 » 程序测试程序(配合游戏及学习控制管理器使用)

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情