ch19_15.cpp
Upload User: puke2000
Upload Date: 2022-07-25
Package Size: 912k
Code Size: 0k
Category:

CSharp

Development Platform:

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. }