[c++]代码库
#include <stdio.h>
#include <windows.h>
#define TOTAL 5044
#define START 820
#define SIZE 88
int info ( void );
int getChoice ( void );
int main ( int argc, char *argv[] )
{
int data[TOTAL] =
{
12,0,0,0,34,0,0,0,100,247,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,10,0,0,
0,10,0,0,0,10,0,0,0,10,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,2,0,0,
0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,
0,10,0,0,0,1,0,0,0,1,0,0,0,5,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,141,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,
0,2,0,0,0,2,0,0,0,6,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,2,0,0,
0,2,0,0,0,3,0,0,0,3,0,0,0,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,
0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,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0,0,0,0,0,112,140,130,75,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0
};
const char * const plant[] = {"豌豆射手", "向日葵", "樱桃炸弹", "坚果墙", "土豆雷", "寒冰射手",
"大嘴花", "双发射手", "小喷菇", "阳光菇", "大喷菇", "墓碑吞噬者", "魅惑菇", "胆小菇",
"寒冰菇", "毁灭菇", "睡莲", "倭瓜", "三线射手", "缠绕海草", "火爆辣椒", "地刺",
"火炬树桩", "高坚果", "海蘑菇", "路灯花", "仙人掌", "三叶草", "裂荚射手", "杨桃",
"南瓜头", "磁力菇", "卷心菜投手", "花盆", "玉米投手", "咖啡豆", "大蒜",
"叶子保护伞", "金盏花", "西瓜投手", "机枪射手", "双子向日葵", "忧郁蘑菇",
"香蒲", "冰瓜", "吸金磁", "地刺王", "玉米加农炮"
};
FILE *fp = NULL;
const char *name = "user1.dat";
info();
int choice;
choice = getChoice();
printf ( " *您的选择是: %s\n", plant[choice] );
if ( ( fp = fopen ( name, "wb" ) ) == NULL )
{
puts ( "Error: 创建存档失败!" );
return 1;
}
int i;
for ( i = 0; i < TOTAL; i++ )
{
if ( i >= START && ( i - START ) % SIZE == 0 )
{
fputc ( choice, fp );
}
else
{
fputc ( data[i], fp );
}
}
fclose ( fp );
puts ( " *Infomation: 已将存档保存到当前目录下的 user1.dat 文件\n" );
system ( "pause" );
return 0;
}
int info ( void )
{
puts ( "\n植物大战僵尸.禅境花园存档修改工具" );
puts ( " By HeQingwei Email hqwemail@163.com\n\n" );
puts ( " *请选择植物*\n" );
puts ( " 0: 豌豆射手 1: 向日葵 2: 樱桃炸弹 3: 坚果墙" );
puts ( " 4: 土豆雷 5: 寒冰射手 6: 大嘴花 7: 双发射手" );
puts ( " 8: 小喷菇 9: 阳光菇 10: 大喷菇 11: 墓碑吞噬者" );
puts ( " 12: 魅惑菇 13: 胆小菇 14: 寒冰菇 15: 毁灭菇" );
puts ( " 16: 睡莲 17: 倭瓜 18: 三线射手 19: 缠绕海草" );
puts ( " 20: 火爆辣椒 21: 地刺 22: 火炬树桩 23: 高坚果" );
puts ( " 24: 海蘑菇 25: 路灯花 26: 仙人掌 27: 三叶草" );
puts ( " 28: 裂荚射手 29: 杨桃 30: 南瓜头 31: 磁力菇" );
puts ( " 32: 卷心菜投手 33: 花盆 34: 玉米投手 35: 咖啡豆" );
puts ( " 36: 大蒜 37: 叶子保护伞 38: 金盏花 39: 西瓜投手" );
puts ( " 40: 机枪射手 41: 双子向日葵 42: 忧郁蘑菇 43: 香蒲" );
puts ( " 44: 冰瓜 45: 吸金磁 46: 地刺王 47: 玉米加农炮" );
return 0;
}
int getChoice ( void )
{
int choice;
int flag = 0;
char temp[20];
do
{
printf ( " >" );
fgets ( temp, sizeof ( temp ), stdin );
fflush ( stdin );
temp[sizeof ( temp ) - 2] = '\0';
choice = atoi ( temp );
if ( choice > 47 || choice < 0 )
{
flag = 1;
printf ( " Error: 错误的序号, 请输入0..47之间的数字" );
}
else
{
flag = 0;
}
}
while ( flag == 1 );
return choice;
}
中级程序员
by: 事尼霸霸 发表于:2022-03-19 21:34:27 顶(2) | 踩(2) 回复
???
回复评论