管理宠物店系统,运用c++编写
==================================================|"<<endl;
cout<<"\t\t| 1.犬类 |"<<endl;
cout<<"\t\t| 2.蛇类 |"<<endl;
cout<<"\t\t| 3.鸟类 |"<<endl;
cout<<"\t\t| 4.猫科类 |"<<endl;
cout<<"\t\t| 5.兔类 |"<<endl;
cout<<"\t\t| 6.两栖类 |"<<endl;
cout<<"\t\t| 7.昆虫类 |"<<endl;
cout<<"\t\t| 0.退回上级菜单! |"<<endl;
cout<<"\t\t|==========================================================|"<<endl;
}
void item::menu6()
{
cout<<"\t\t|==========================================================|"<<endl;
cout<<"\t\t| 1.通过宠物的ID编号删除 |"<<endl;
cout<<"\t\t| 2.通过宠物种类删除 |"<<endl;
cout<<"\t\t| 0.退回主菜单! |"<<endl;
cout<<"\t\t|==========================================================|"<<endl;
}
item *item ::creat()
{item *p,*q,*head,node;
p=head=q=new item;
char s[100];string line;
ifstream mfile("宠物信息.txt");
mfile.getline(s,100);
mfile>>id>>Sex>>Age>>Weight>>Birthday>>Birthplace>>Price>>Character>>Kind>>Feedregion;
node.set_ID(id);node.set_sex(Sex);node.set_age(Age);node.set_weight(Weight);node.set_birthday(Birthday);node.set_birthplace(Birthplace);node.set_price(Price);node.set_character(Character);node.set_kind(Kind);node.set_feedregion(Feedregion);
*p=node;
while(!mfile.eof())
{
p=new item;
q->next=p;
q=p;
mfile>>id>>sex>>Age>>Weight>>Birthday>>Birthplace>>Price>>Character>>Kind>>Feedregion;
node.set_ID(id);node.set_sex(Sex);node.set_age(Age);node.set_weight(Weight);node.set_birthday(Birthday);node.set_birthplace(Birthplace);node.set_price(Price);node.set_character(Character);node.set_kind(Kind);node.set_feedregion(Feedregion);
*p=node;
}
p->next=NULL;
mfile.close();
return head;
}
item * item::insert(item *head,item *n) //插入
{
item *q,*p;
p=head;
if(head==NULL)
{ head=n; head->next=NULL;}
else
{
while(p->ID<n->ID&&p->next!=NULL)
{ q=p;
p=p->next;
}
if(n->ID<=p->ID)
{ if(head==p)
head=n;
else
q->next=n;
n->next=p;
}
else
{
p->next=n;
n->next=NULL;
}
}
return head;
}
void item::show(item *x)
{ cout<<"ID编号"<<"|性别"<<"|年龄(天)"<<"|体重(千克)"<<"|出生日期"<<"|原产地"<<"|价格(元)"<<"|性格"<<"|种类"<<"|饲养区域(区)"<<endl;
cout<<"|"<<x->get_ID()<<" | "<<x->get_sex()<<" | "<
Vc++ 宠物店管理系统 7页 2下载券 宠物店管理系统需求分析... 12页 1...编写的宠物店管理系统的代码,要想运行成功要创建一个主函数文件,三个头 文件,...
宠物店管理系统_经管营销_专业资料。汉思宠物店管理软件系统配置说明 汉思宠物店... Vc++ 宠物店管理系统 7页 2下载券 宠物医院管理系统 14页 免费 需求分析...
Vc++ 宠物店管理系统 7页 2下载券 宠物店管理系统需求分析... 12页 1下载券 汉思宠物店管理系统2011... 75页 免费 宠物店小型管理系统C 代... 暂无评价...
第三章、用户手册 3.1 打开方式 (1)先打开电脑中的 visual C 软件,再通过 vc 打开目录中文件名为“宠物(小动物)信息 管理系统.c”的.c 文件。 (2)找到 ...
第二节 汉思宠物店管理系统安装 双击安装源程序‘TruePet.exe’,进入如下图所示: 图 2-1 在图 2-1 点击【下一步】 ,进入如下图: 图 2-2 在图 2-2 ...
宠物店营销方案 4页 2财富值 Vc++ 宠物店管理系统 7页 5财富值 宠物店... iMos 宠物店管理平台 是专业为宠物店设计的在线管理软件,它带给我们的不是庞大...
12 学生成绩管理系统需求分析 1 引言 1.1 编写目的宠物店管理系统是一套专业应用于宠物医院、宠物店的管理软件。软件包括了宠物用品销售、宠物 美容、宠物医疗、...
汉思宠物店管理系统2011版 75页 免费 Vc++ 宠物店管理系统 7页 5财富值 ...char ch_judge; int flag=0;//标记,用于判断宠物信息是否存在 list<Cpet>::...
汉思宠物店管理系统嘉兴思拓科技有限公司 宠物店前台管理系统 界面美观 操作快捷、方便 支持四种开单方式 分别是会员卡、宠 物卡、查找、散客 宠物店前台管理系统...
(二)系统中信息处理的概况 当下宠物店管理信息系统主要包括顾客信息管理、宠物订单管理、宠物物品 订单管理、人员信息管理、人员工资管理、宠物信息管理、售后服务等。...
热门文档