'set' was not declared in this scope

原问题:'set' was not declared in this scope
分类:编程开发 > 最后更新时间:【2017-07-28 05:24:15】
问题补充:

#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是画蛇添足的话。

最佳答案由网友  朱啊蚊  提供
公告: 为响应国家净网行动,部分内容已经删除,感谢网友理解。
9

分享到:

其他回答

暂无其它回答!