流类库3

#include<iostream>
#include<iomanip>
#include<string>
using namespace std;
int main()
{
double values[]={1.23,35.36,653.7,4358.24};
string names[]={"Zoot","Jimmy","Al","Stan"};
for(int i=0;i<4;i++)
cout<<setiosflags(ios_base::left)
<<setw(6)<<names[i]<<resetiosflags(ios_base::left)
<<setw(10)<<values[i]<<endl;
return 0;
}

posted @ 2023-05-14 19:45  不会JAVA的小袁  阅读(8)  评论(0编辑  收藏  举报