数据结构课程设计学生成绩管理系统(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;
}
数脉科技(shuhost)8月促销:香港独立服务器,自营BGP、CN2+BGP、阿里云线路,新客立减400港币/月,老用户按照优惠码减免!香港服务器带宽可选10Mbps、30Mbps、50Mbps、100Mbps带宽,支持中文本Windows、Linux等系统。官方网站:https://www.shuhost.com* 更大带宽可在选购时选择同样享受优惠。* 目前仅提供HKBGP、阿里云产品,香港...
vollcloud LLC创立于2020年,是一家以互联网基础业务服务为主的 技术型企业,运营全球数据中心业务。致力于全球服务器租用、托管及云计算、DDOS安 全防护、数据实时存储、 高防服务器加速、域名、智能高防服务器、网络安全服务解决方案等领域的智 能化、规范化的体验服务。所有购买年付产品免费更换香港原生IP(支持解锁奈飞),商家承诺,支持3天内无条件退款(原路退回)!点击进入:vollclo...
香港服务器租用多少钱一个月?香港服务器受到很多朋友的青睐,其中免备案成为其特色之一。很多用户想了解香港云服务器价格多少钱,也有同行询问香港服务器的租赁价格,一些实际用户想要了解香港服务器的市场。虽然价格是关注的焦点,但价格并不是香港服务器的全部选择。今天小编介绍了一些影响香港服务器租赁价格的因素,以及在香港租一个月的服务器要花多少钱。影响香港服务器租赁价格的因素:1.香港机房选择香港机房相当于选择...