C/C+±014-get成员函数的使用-2020-3-3
//get成员函数的使用
#include<iostream>
using namespace std;
int main()
{
char c;
c=cin.get();
cout<<"c:"<<c<<endl;
cout<<"ASCII:"<<(int)c<<endl;
return 0;
}
t
c:t
ASCII:116
--------------------------------
Process exited with return value 0
Press any key to continue . . .
来源:CSDN
作者:c l o u d
链接:https://blog.csdn.net/weixin_41096569/article/details/104631272