摘要:
//4-3把读到的字符串形式的整数转换为数值显示 #include #include int main(){ char temp[20]; printf("请输入整数:"); scanf("%s", temp); printf("你输入了%d。\n", atoi(temp)); return 0; } //4-6珠玑妙算 #include #inclu... 阅读全文
posted @ 2018-01-25 21:50
LeoSirius
阅读(274)
评论(0)
推荐(0)
摘要:
//3-1猜拳游戏, 其一 #include #include #include int main(){ int human; int comp; int judge; int retry; srand(time(NULL)); printf("猜拳游戏开始!!\n"); do{ comp = rand() % ... 阅读全文
posted @ 2018-01-25 20:23
LeoSirius
阅读(207)
评论(0)
推荐(0)
浙公网安备 33010602011771号