setf_ovr.cpp

来自「《C C++程序员实用大全》配套光盘源代码 欢迎下载」· C++ 代码 · 共 10 行

CPP
10
字号
#include <iostream.h>

void main(void)
 {
   cout.setf(ios::showpos | ios::showpoint);
   cout << 100 << endl;
   cout.setf(ios::showpoint, ios::showpos | ios::showpoint);
   cout << 100;
 }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?