cpp03.cpp
来自「C++参考书」· C++ 代码 · 共 24 行
CPP
24 行
// Coded by plusir -- Jan.09.2003.
// Standard C++ Bible -- (P517-18-3)
#include <iostream>
#include <iomanip>
using namespace std ;
int main()
{
static double values[] = { 1.23, 35.36, 653.7, 4358.224 } ;
static char *names[] = { "Zoot", "Jimmy", "AI", "Stan" } ;
cout.setf( ios::fixed, ios::scientific ) ;
for ( int i = 0; i < 4; ++i )
cout
<< setw( 6 ) << names[i]
<< setw( 10 ) << values[i]
<< endl ;
return 0 ;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?