摘要: peek()用于看接下来读入的那个字符是什么,没有输入也没有丢弃,你可以正常使用cin。 返回值是字符。 使用方法为cin.peek()。 #include <iostream> #include<ctype.h> #include<vector> #include<string> using na 阅读全文
posted @ 2020-05-17 17:53 kalice 阅读(2742) 评论(0) 推荐(1)