数据结构课程设计学生成绩管理系统(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;
}
湖南百纵科技有限公司是一家具有ISP ICP 电信增值许可证的正规公司,多年不断转型探索现已颇具规模,公司成立于2009年 通过多年经营积累目前已独具一格,公司主要经营有国内高防服务器,香港服务器,美国服务器,站群服务器,东南亚服务器租用,国内香港美国云服务器,以及全球专线业务!活动方案:主营:1、美国CN2云服务器,美国VPS,美国高防云主机,美国独立服务器,美国站群服务器,美国母机。2、香港C...
RackNerd 商家我们应该是比较熟悉的商家,速度一般,但是人家便宜且可选机房也是比较多的,较多集中在美国机房。包括前面的新年元旦促销的时候有提供年付10美元左右的方案,实际上RackNerd商家的营销策略也是如此,每逢节日都有活动,配置简单变化,价格基本差不多,所以我们网友看到没有必要囤货,有需要就选择。RackNerd 商家这次2022农历新年也是有几款年付套餐。低至RackNerd VPS...
青云互联怎么样?青云互联美国洛杉矶cn2GIA云服务器低至19元/月起;香港安畅cn2云服务器低至19元/月起;日本cn2云主机低至35元/月起!青云互联是一家成立于2020年的主机服务商,致力于为用户提供高性价比稳定快速的主机托管服务。青云互联本站之前已经更新过很多相关文章介绍了,青云互联的机房有香港和洛杉矶,都有CN2 GIA线路、洛杉矶带高防,商家承诺试用7天,打死全额退款点击进入:青云互联...