摘要: 将键盘正确顺序放入数组,查找时i-1位即为正确位置 注意除了数组中输入和空格外 还有其他输入 `#include #include using namespace std; int main() { char s[] = "`1234567890-=QWERTYUIOP[]\ASDFGHJKL;'Z 阅读全文
posted @ 2021-08-22 22:00 lwx_R 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1.scanf() 速度比cin快,在输入大量数据时用scanf 2.scanf()遇到空格,回车会停止 getchar()则可以 循环读入数据 while((c=getchar())!=EOF) while(cin>>n&&n) 阅读全文
posted @ 2021-08-22 21:32 lwx_R 阅读(20) 评论(0) 推荐(0) 编辑