就是在这行多了个空格,结果输出就成了问题
#include<iostream>using namespace std;
void fixpoint(int i);
void main()
{
char a,b,c;
cout<<"enter a,b\n";
cin>>a>>b;
cout<<"enterr c"<<endl;
c='h ';//就是在这行多了个空格,结果输出就成了问题
cout<<a<<b<<c<<endl;
cout<<"that is all\n";
}
void fixpoint(int i)
{
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(3);
}