阅读下列程序,写出运行结果。(c++基础)
#include<iostream>usingnamespacestd;intmain(){doublex=123.45678;cout.width(10);cout<<...
#include<iostream>
using namespace std;
int main()
{
doublex = 123.45678;
cout.width( 10 );
cout<<("#" );
cout<<x<<endl;
cout.precision( 5 );
cout<<x<<endl;
cout.setf(ios::showpos );
cout<<x<<endl;
cout.setf(ios::scientific );
cout<<x<<endl;
}
#include<iostream>
using namespace std;
int main()
{
doublex = 123.45678;
cout.width( 10 );
cout<<("#" );
cout<<x<<endl;
cout.precision( 5 );
cout<<x<<endl;
cout.setf(ios::showpos );
cout<<x<<endl;
cout.setf(ios::scientific );
cout<<x<<endl;
}
标志字到底是怎么弄的~我看不懂~求搭救 展开
using namespace std;
int main()
{
doublex = 123.45678;
cout.width( 10 );
cout<<("#" );
cout<<x<<endl;
cout.precision( 5 );
cout<<x<<endl;
cout.setf(ios::showpos );
cout<<x<<endl;
cout.setf(ios::scientific );
cout<<x<<endl;
}
#include<iostream>
using namespace std;
int main()
{
doublex = 123.45678;
cout.width( 10 );
cout<<("#" );
cout<<x<<endl;
cout.precision( 5 );
cout<<x<<endl;
cout.setf(ios::showpos );
cout<<x<<endl;
cout.setf(ios::scientific );
cout<<x<<endl;
}
标志字到底是怎么弄的~我看不懂~求搭救 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询