#include <iostream.h>#include <iomanip.h>int main(){int n;cin>>setbase(n);cout<<hex<<n<<endl<<dec<<n<<endl<<oct<<n<<endl;return 0;}error C2871: 'std' : does not exist or is not a namespaceerror C2065: 'setbase' : undeclared identifier怎么回事呢?大神不要打我。题目错了。没有那个,只是error C2065: 'setbase' : undeclared identifier
1 回答
慕桂英3389331
TA贡献2036条经验 获得超8个赞
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int n;
cin>>setbase(n);
cout<<hex<<n<<endl
<<dec<<n<<endl
<<oct<<n<<endl;
return 0;
}
- 1 回答
- 0 关注
- 162 浏览
添加回答
举报
0/150
提交
取消