ch19_2.cpp

来自「本文档是(作者:钱能)《C++程序设计教程》系列的部分辅助代码。 选题编辑:张」· C++ 代码 · 共 19 行

CPP
19
字号
//**********************
//**    ch19_2.cpp    **
//**********************

#include<fstream.h>

void fn()
{
  ofstream myf("e:\\bctemp\\abc.txt");    //ios::out|ios::trunc方式
  myf <<"In each of the following questions, a related pair\n"
      <<"of words or phrases is followed by five lettered pairs\n"      <<"of words or phrases.\n";
}

void main()
{
  fn();
}

⌨️ 快捷键说明

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