📄 createscore.c
字号:
/******************************************/
/* createscore.c of goldenbugs */
/* */
/* to create the data highscore */
/* */
/* Cat Tom 5.4.2003 */
/******************************************/
#include<stdio.h>
main()
{
int i;
FILE *fp;
char *name[10]={"Cat Tom","Jv29","Little Tiger","Cat Tom","Cat Tom","Cat Tom","Cat Tom","Cat Tom","Cat Tom","Cat Tom"};
long score[10]={539807,529847,235957,0,0,0,0,0,0,0};
if((fp=fopen("highscore.set","wb"))==NULL)
{
printf("score file open error!!!");
exit(0);
}
for(i=0;i<10;i++)
{
fwrite(name[i],sizeof(char),16,fp);
fwrite(score+i,sizeof(long),1,fp);
}
fclose(fp);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -