'set' was not declared in this scope
问题补充:
#include<iomanip>
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<set w(4)<<" "<a<<"+"<<b<<a+b<<endl;
cout<<a<<endl;
cout<<"+"<<b<<endl;
cout<<"-----------"<<endl;
cout<<a+b<<endl;
return 0;
}
[Error] 'set' was not declared in this scope
[Error] expected ';' before 'w'
最佳答案
就是标识符没有声明。后面那个in this scope是画蛇添足的话。
最佳答案由网友 朱啊蚊 提供
其他回答
暂无其它回答!