/*
* iostream_cout.cpp
*
* Created on: 2013-9-30
* Author: Administrator
*/
#include<iostream.h>
#if 0
int main(void)
{
double values[] = {1.23,35.36,653.7,4358.24};
for(int i = 0; i < 4; i++)
{
/* 限制输出宽度为10 */
cout.width(10);
/* 用*填充 */
cout.fill('*');
cout << values[i] << '\n';
}
return 0;
}
#endif
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。