C++语言中,cin.get()与cin.peek()是什么功能啊??
的有关信息介绍如下:

cin.get()用法1: cin.get(字符变量名)可以用来接收字符#include using namespace std;main (){char ch;ch=cin.get(); //或者cin.get(ch);cout<using namespace std;main (){char a[20];cin.get(a,20);cout= '0') && (c <= '9') ){cin >> n;cout << "You have entered number " << n << endl;}else{cin >> str;cout << " You have entered word " << str << endl;}return 0;}