11_11.cpp

来自「C++语言程序设计案例教程,郑莉编的书」· C++ 代码 · 共 12 行

CPP
12
字号
#include <iostream>
using namespace std;
int main()
{  //使用默认格式显示双精度数值
   cout << "Before using showpoint\n" << "8.8800 prints as: " << 8.8800 << endl
        << "8.8000 prints as: " << 8.8000 << "\n8.0000 prints as: " << 8.0000 << endl;
   //使用showpoint后显示双精度数值
   cout << showpoint<< "After using showpoint\n" << "8.8800 prints as: " << 8.8800 << endl
        << "8.8000 prints as: " << 8.8000 << "\n8.0000 prints as: " << 8.0000 << endl;
   return 0;
}

⌨️ 快捷键说明

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