正在加载图片...
C++语言程序设计 第三章结构化程序设 例3.6)使用setw设置值的输出宽度。 #include <iostream.h> #include <iomanip. h void maino int a=10 int b=1000 cout <<setw(5)<<a<<n"; cout <<setw()<<b; 程序的运行结果为: 10 1000C++语言程序设计 第三章 结构化程序设 【计 例3.6】 使用setw设置值的输出宽度。 #include <iostream.h> #include <iomanip.h> void main() { int a =10; int b =1000; cout <<setw(5)<<a<<"\n"; cout <<setw(2)<<b; } 程序的运行结果为: 10 1000
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有