上机内容:C++学习 上机目的:行路难!行路难!多歧路,今安在?长风破浪会有时,直挂云帆济沧海。
#include<iostream>
#include<iomanip>
using namespace std
;
int main()
{
int a
,b
,c
;
cin
>>a
>>b
>>c
;
cout
<<setw(8)<<a
<<" "<<setw(8)<<b
<<" "<<setw(8)<<c
<<endl
;
cout
<<"***************************"<<endl
;
return 0;
}
运行结果: 加了一行*,数星号总比数空格好一点
心得体会: 在C++遇见的第一个问题,百度过但是他们用的都是 printf("