c语言怎样能在运行中输入一个指定的数字,然后就关闭该窗口

2025-06-28 11:45:55
推荐回答(1个)
回答1:

1.getch(); //读取一个字符输入 这样就可以看到结果了 当你按下键盘上任意字符时就会结束
2.system("pause"); //试试