摘要: while循环 #include <stdio.h> #define GOLD 100 int main(void) { int rush = 1; while (rush <= GOLD) { if (rush == 50) { printf("挖到铁矿了,扔掉不要。\n"); rush++; c 阅读全文
posted @ 2023-01-08 22:01 江理第一深情 阅读(30) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 void main(void) 3 { 4 char ch; 5 printf("请输入一个字符:"); 6 ch = getchar();/*getchar、putchar专门用于字符输入输出; 7 getchar()写法上要写为 变量 = getch 阅读全文
posted @ 2023-01-08 21:02 江理第一深情 阅读(80) 评论(0) 推荐(0)