摘要:
几个输入 cin.get(),getchar,cin. getline的赋值问题一,关于这个几个函数怎么处理它遇到的第一个字符cin.get()# include <iostream># include <string>using namespace std;int main(){ char a; char b; a = getchar(); b = cin.get(); cout << a << b << endl; system("pause"); return 0;}输入: a+空格+b+按下回车输出输入:a 阅读全文
posted @ 2012-02-19 14:09
6745
阅读(3570)
评论(0)
推荐(1)