教程中国
PHOTOSHOP CS9.0中文版 MAYA 8.5 FOR WINDOWS Corel Painter v9.0 Flash MX2004 中文版 Illustrator cs2 中文版
VC++6.0含sp6 中英文版 VB6.0 +sp6 简体中文版 Borland Delphi 7汉化版 MSDN for vb6.0中文版 Visual Studio 2005简体
教程中国下属 文件存储共享专家BIBIDU.COM 提供大型软件,教材,源码,电影,音乐,图书等下载 更多精品请点此进入
  您目前所在位置: 教程中国 >> 编程基地 >> C++ >> 光碟管理系统 RSS订阅
光碟管理系统
光碟管理系统(1)
教程(视频,书籍)下载:  ASP.NET AutoCAD 数据库 C# ASP java photoshop 网页设计 delphi 3dmax Flash C++ VB 张孝祥 实例   更多请进入BIBIDU搜索
IT搜索引擎   
//光碟管理系统.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] [168 :>

2008-12-4 6:45:28
本文的相类似文章
在学习中进步 在进步中成长 教程中国相随您的成长之路
华腾联合科技股份有限公司版权所有
广告联系:Rosibo@163.com