1.cpp E:\2\复件 (2)\Debug\Debug\1.cpp(2) : error C2039: 'setw' : is not a member of 'std' E:\2\复件
#include<iostream>usingstd::setw;usingstd::cout;usingstd::endl;intmain(){intnum1=1234...
#include<iostream>
using std::setw;
using std::cout;
using std::endl;
int main()
{
int num1=1234,num2=12345;
cout<<endl;
cout<<setw(2)<<num1<<setw(1)<<num2;
cout<<endl;
return 0;
} 展开
using std::setw;
using std::cout;
using std::endl;
int main()
{
int num1=1234,num2=12345;
cout<<endl;
cout<<setw(2)<<num1<<setw(1)<<num2;
cout<<endl;
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询