将单个字符转换为大写的问题
#include <iostream.h>
#include <ctype.h>//用来转换字符的函数toupper()的头文件
class string
{
private:
int a,b;
public:
shuru()
{
cout<<"请输入:";
cin>>a;
cout<<"\n输出:";
cout<<toupper(a)<<endl;
}
};
void main()
{
string aa;
aa.shuru();
}
问题时为什么输出老为0,回答加分