|
光碟管理系统
光碟管理系统(1)
//光碟管理系统.cpp Defines the entry point for the console application. #include <iostream.h> #include <iomanip.h> #include <string.h> #include <fstream.h>
const int maxg = 100; //最多的客户数 const int maxd = 1000; //最多的光碟数 const int maxbor = 10; //每个客户最多可借10张光碟
class guest //客户类 { int tag; //删除标记 1:已删 0:未删 int no; //客户编号 char name[20]; //客户姓名 int bordisk[maxbor]; //所借光碟 public: guest(){} char *getname() //获取姓名 { return name; } int gettag() //获取删除标记 { return tag; } int getno() //获取客户编号 { return no; } void setname(char na[]) //设置姓名 { strcpy(name, na); } void deldisk() //设置删除标记 { tag = 1; } void addguest(int n, char *na) //增加客户 { tag = 0;
来源:十度教育 作者: 关键字:光碟管理系统 发表日期:2006-6-29 1:07:32 网页显示有限 阅读全文请下载本文完整版WORD文档
上一篇:C++中建立对象间消息连接的系统方法 下一篇:C++中几个比较不常用的关键字
共16页 9 7 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] 8 :>
2008-12-4 6:45:28
|
|