64,643
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <iomanip>//楼主你别再看那个书啦,把这个头文件改改,XXX.h已经是旧的形式了
using namespace std;
int main()
{
cout <<10 <<" " <<-20 <<endl;
cout <<setiosflags(ios::showpos)<<30<<" "<<-40<<endl;
return 0;
}
#include <iostream>
#include <iomanip> //这边没有.h
using namespace std;
int main()
{
cout <<10 <<" " <<-20 <<endl;
cout <<setiosflags(ios::showpos) <<30 <<" " <<-40 <<endl;
return 0;
}