ch19_15.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:0k
源码类别:
C#编程
开发平台:
Visual C++
- //***********************
- //** ch19_15.cpp **
- //***********************
- #include <fstream.h>
- #include "student.h"
- #include "master.h"
- void main()
- {
- ofstream out("e:\bctemp\abc.txt");
- Student s1("Dill Arnson", 12567, 3.5);
- MasterStudent s2("Welch Shammas", 12667, 4.1, 'A');
- MasterStudent s3("Portel Braumbel", 12579, 3.8, 'B');
- out <<s1;
- out <<s2;
- out <<s3;
- }