ch19_15.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:0k
源码类别:

C#编程

开发平台:

Visual C++

  1. //***********************
  2. //**    ch19_15.cpp    **
  3. //***********************
  4. #include <fstream.h>
  5. #include "student.h"
  6. #include "master.h"
  7. void main()
  8. {
  9.   ofstream out("e:\bctemp\abc.txt");
  10.   Student s1("Dill Arnson", 12567, 3.5);
  11.   MasterStudent s2("Welch Shammas", 12667, 4.1, 'A');
  12.   MasterStudent s3("Portel Braumbel", 12579, 3.8, 'B');
  13.   out <<s1;
  14.   out <<s2;
  15.   out <<s3;
  16. }