数据结构课程设计学生成绩管理系统(C语言的)。。。要有删除、添加、排序、修改等功能#include 求数据结构 课程设计 背单词程序 C++
我刚写了个。
。
你看看符合不符合:
#include<iostream.h>
#include<stdlib.h>
#include<string.h>
char a[1005];
char b[1005];
void cxjg()
{
cout<<"**********************************"<<endl;
cout<<"正确 单词:"<<a<<endl;
cout<<"输入的单词:"<<b<<endl;
if(strcmp(a,b)==0)
cout<<"you are all right!"<<endl;
else
cout<<"继续努力"<<endl;
}
void bei()
{
int i;
cout<<"**********************************"<<endl;
cout<<"***1.背单词。
2.对比结果.0.返回****"<<endl;
cout<<"**********************************"<<endl;
while(cin>>i)
{
system("cls");
if(i==0)
break;
if(i==1)
{
cout<<"输入单词:";
cin>>b;
cout<<"输入完毕"<<endl;
}
if(i==2)
cxjg();
cout<<"**********************************"<<endl;
cout<<"***1.背单词。
2.对比结果.0.返回****"<<endl;
cout<<"**********************************"<<endl;
}
}
void cx()
{
cout<<"**********************************"<<endl;
cout<<"要背的单词是:"<<a<<endl;
cout<<"**********************************"<<endl;
}
void sr()
{
int i;
cout<<"**********************************"<<endl;
cout<<"**1.输入要背的单词.2查询要背单词**"<<endl;
cout<<"************0.返回****************"<<endl;
cout<<"**********************************"<<endl;
while(cin>>i)
{
system("cls");
if(i==0)
break;
if(i==1)
{
cin>>a;
cout<<"输入完毕"<<endl;
}
if(i==2)
cx();
cout<<"**********************************"<<endl;
cout<<"**1.输入要背的单词.2查询要背单词**"<<endl;
cout<<"************0.返回****************"<<endl;
cout<<"**********************************"<<endl;
}
}
void gn()
{
int i;
cout<<"**********************************"<<endl;
cout<<"************功能选择界面**********"<<endl;
cout<<"**输入相应的数字,进入相应的功能**"<<endl;
cout<<"**1.输入单词**2.背单词****0.返回**"<<endl;
cout<<"**********************************"<<endl;
while(cin>>i)
{
system("cls");
if(i==0)
break;
if(i==1)
sr();
if(i==2)
bei();
cout<<"**********************************"<<endl;
cout<<"************功能选择界面**********"<<endl;
cout<<"**输入相应的数字,进入相应的功能**"<<endl;
cout<<"**1.输入单词**2.背单词****0.返回**"<<endl;
cout<<"**********************************"<<endl;
}
}
int main()
{
int i;
cout<<"**********************************"<<endl;
cout<<"********欢迎来到背单词程序********"<<endl;
cout<<"******1.进入功能界面***0.退出*****"<<endl;
cout<<"**********************************"<<endl;
while(cin>>i)
{
system("cls");
if(i==1)
gn();
if(i==0)
break;
cout<<"**********************************"<<endl;
cout<<"********欢迎来到背单词程序********"<<endl;
cout<<"******1.进入功能界面***0.退出*****"<<endl;
cout<<"**********************************"<<endl;
}
return 0;
}
ihostart怎么样?ihostart是一家国外新商家,主要提供cPanel主机、KVM VPS、大硬盘存储VPS和独立服务器,数据中心位于罗马尼亚,官方明确说明无视DMCA,对版权内容较为宽松。有需要的可以关注一下。目前,iHostART给出了罗马尼亚vps的优惠信息,罗马尼亚VPS无视DMCA、抗投诉vps/2核4G内存/40GB SSD/100M端口月流量2TB,€20/年。点击直达:ih...
PIGYun是成立于2019年的国人商家,提供香港、韩国和美西CUVIP-9929等机房线路基于KVM架构的VPS主机,本月商家针对韩国首尔、美国洛杉矶CUVIP-AS29、GIA回程带防御等多条线路VPS提供6-8.5折优惠码,优惠后韩国首尔CN2混合BGP特惠型/美国洛杉矶GIA回程带10Gbps攻击防御VPS主机最低每月14.4元起。下面列出几款不同机房VPS主机配置信息,请留意不同优惠码。...
Bluehost怎么样,Bluehost好不好,Bluehost成立十八周年全场虚拟主机优惠促销活动开始,购买12个月赠送主流域名和SSL证书,Bluehost是老牌虚拟主机商家了,有需要虚拟主机的朋友赶紧入手吧,活动时间:美国MST时间7月6日中午12:00到8月13日晚上11:59。Bluehost成立于2003年,主营WordPress托管、虚拟主机、VPS主机、专用服务器业务。Blueho...