0
已解决
刘添睿
高级光能
高级光能
本人制作的一个简单系统:
#include<iostream>
using namespace std;
int main(){
int mima,mimaa,xuanxiang,shuzi1,shuzi2;
char zifu;
cout<<"欢迎使用liunux系统";
cout<<endl;
cout<<"请输入密码";
cin>>mima;
cout<<endl;
cout<<"正在开机……";
cout<<endl;
cout<<"开机完成!";
cout<<endl;
cout<<"请输入密码:";
cin>>mimaa;
if(mimaa==mima){
cout<<"密码正确";
}else{
cout<<"密码错误,无法使用!";
return 0;
}
cout<<"按1进入计算器,按2关机";
cin>>xuanxiang;
if(xuanxiang==1){
cout<<"此计算器仅支持 + - * / % 运算";
cout<<endl;
cout<<"请输入数字";
cin>>shuzi1;
cout<<"请输入第二个数字";
cin>>shuzi2;
cout<<"请输入您要对这两个数字进行的运算";
cin>>zifu;
if(zifu=='+'){
cout<<shuzi1+shuzi2;
}else if(zifu=='-'){
cout<<shuzi1-shuzi2;
}else if(zifu=='*'){
cout<<shuzi1*shuzi2;
}else if(zifu=='/'){
cout<<shuzi1/shuzi2;
}else if(zifu=='%'){
cout<<shuzi1%shuzi2;
}else{
cout<<"对不起,此计算器无法进行此类运算";
}
}
if(xuanxiang==2){
cout<<"正在关机";
cout<<"关机完成,再见,期待您回来!";
}
return 0;
}
可复制到Codebloks或Dev-C++编译运行
刘添睿在2024-09-16 14:02:10追加了内容
更新了1.1 酷丁编程版:
#include<iostream>
using namespace std;
int main(){
int xuanxiang,shuzi1,shuzi2,wangzhan;
string mima,mimaa;
char zifu;
cout<<"欢迎使用liunux系统";
cout<<endl;
cout<<"请输入密码: ";
cin>>mima;
cout<<"正在开机……";
cout<<endl;
cout<<"开机完成!";
cout<<endl;
cout<<"请输入密码: ";
cin>>mimaa;
if(mimaa==mima){
cout<<"密码正确!";
}else{
cout<<"密码错误,无法使用!";
return 0;
}
cout<<endl;
while(true){
cout<<"按1进入计算器,按2关机,按3打开浏览器";
cout<<endl;
cin>>xuanxiang;
if(xuanxiang==2){
cout<<"正在关机";
cout<<endl;
cout<<"关机完成,再见,期待您回来!";
break;
}
if(xuanxiang==1){
cout<<"此计算器仅支持 + - * / % 运算";
cout<<endl;
cout<<"请输入数字: ";
cin>>shuzi1;
cout<<"请输入第二个数字: ";
cin>>shuzi2;
cout<<"请输入您要对这两个数字进行的运算: ";
cin>>zifu;
if(zifu=='+'){
cout<<shuzi1+shuzi2;
}else if(zifu=='-'){
cout<<shuzi1-shuzi2;
}else if(zifu=='*'){
cout<<shuzi1*shuzi2;
}else if(zifu=='/'){
cout<<shuzi1/shuzi2;
}else if(zifu=='%'){
cout<<shuzi1%shuzi2;
}else{
cout<<"对不起,此计算器无法进行此类运算";
}
}
if(xuanxiang==3){
cout<<" ______________________________________"<<endl;
cout<<"| |"<<endl;
cout<<"| 按1进入酷丁编程-首页 |"<<endl;
cout<<"| 按2进入酷丁编程-主页 |"<<endl;
cout<<"| 按3进入酷丁编程-微课 |"<<endl;
cout<<"| 按4进入酷丁编程-学校战力 |"<<endl;
cout<<"| 按5进入酷丁编程-IDE |"<<endl;
cout<<"| 按6进入酷丁编程-商城 |"<<endl;
cout<<"| 按7进入酷丁编程-共享题单 |"<<endl;
cout<<"| 按8进入酷丁编程-问答 |"<<endl;
cout<<"| 按9进入酷丁编程-酷丁平台 |"<<endl;
cout<<"| 按10进入酷丁编程-调试试炼场 |"<<endl;
cout<<"| 按11进入酷丁编程-我的课时 |"<<endl;
cout<<"| 按12进入酷丁编程-我的题单 |"<<endl;
cout<<"| 按13进入酷丁编程-我的班级打卡题 |"<<endl;
cout<<"| 按14进入酷丁编程-我的订单 |"<<endl;
cout<<"| 按15进入酷丁编程-我的自首 |"<<endl;
cout<<"| 按16进入酷丁编程-我的举报 |"<<endl;
cout<<"| 按17进入酷丁编程-我的翻译 |"<<endl;
cout<<"| 按18进入酷丁编程-账户明细 |"<<endl;
cout<<"| 按19进入酷丁编程-我的关注 |"<<endl;
cout<<"| 按20进入酷丁编程-消息通知 |"<<endl;
cout<<"| 按21进入酷丁编程-个人信息 |"<<endl;
cout<<"| 按22进入酷丁编程-我的班级 |"<<endl;
cout<<"| 按23进入酷丁编程-题库 |"<<endl;
cout<<"| 按24进入酷丁编程-作业 |"<<endl;
cout<<"| 按25进入酷丁编程-考试-内部学员考试 |"<<endl;
cout<<"| 按26进入酷丁编程-考试-选拔模拟考试 |"<<endl;
cout<<"| 按27进入酷丁编程-考试-班级阶段考试 |"<<endl;
cout<<"| 按28进入酷丁编程-考试-试卷上机考试 |"<<endl;
cout<<"| 按29进入酷丁编程-考试-积分赛 |"<<endl;
cout<<"| 按30进入酷丁编程-笔记本 |"<<endl;
cout<<"| 按31进入酷丁编程-错题本 |"<<endl;
cout<<"| 按32进入酷丁编程-排名-班级排名 |"<<endl;
cout<<"| 按33进入酷丁编程-排名-当前赛季 |"<<endl;
cout<<"| 按34进入酷丁编程-排名-上季排名 |"<<endl;
cout<<"| 按35进入酷丁编程-排名-等级排名 |"<<endl;
cout<<"| 按36进入酷丁编程-排名-至尊榜 |"<<endl;
cout<<"| 按37进入酷丁编程-排名-调试达人榜 |"<<endl;
cout<<"| 按38进入酷丁编程-排名-积分排行榜 |"<<endl;
cout<<"| 按39进入酷丁编程-网络课-直播课 |"<<endl;
cout<<"| 按40进入酷丁编程-网络课-我的视频课 |"<<endl;
cout<<"| 按41进入酷丁编程-知识树 |"<<endl;
cout<<"|______________________________________|"<<endl;
cin>>wangzhan;
if(wangzhan==1){
system("start https://ke.kuding.cn/#/home");
}else if(wangzhan==2){
system("start https://ke.kuding.cn/#/user/center");
}else if(wangzhan==3){
system("start https://ke.kuding.cn/#/netCourse/weiCourseList");
}else if(wangzhan==4){
system("start https://ke.kuding.cn/#/ranking/schoolPower");
}else if(wangzhan==5){
system("start https://ke.kuding.cn/#/ide");
}else if(wangzhan==6){
system("start https://ke.kuding.cn/#/shop/list");
}else if(wangzhan==7){
system("start https://ke.kuding.cn/#/user/shareProblem");
}else if(wangzhan==8){
system("start https://wenda.codingtang.com/");
}else if(wangzhan==9){
system("start https://kuding1024.com/#/home");
}else if(wangzhan==10){
system("start https://ke.kuding.cn/#/debug/list");
}else if(wangzhan==11){
system("start https://ke.kuding.cn/#/user/myCourse");
}else if(wangzhan==12){
system("start https://ke.kuding.cn/#/collection/collectionFolder");
}else if(wangzhan==13){
system("start https://ke.kuding.cn/#/user/pushClsClockList");
}else if(wangzhan==14){
system("start https://ke.kuding.cn/#/user/order");
}else if(wangzhan==15){
system("start https://ke.kuding.cn/#/user/surrender");
}else if(wangzhan==16){
system("start https://ke.kuding.cn/#/user/report");
}else if(wangzhan==17){
system("start https://ke.kuding.cn/#/user/translation");
}else if(wangzhan==18){
system("start https://ke.kuding.cn/#/user/account");
}else if(wangzhan==19){
system("start https://ke.kuding.cn/#/user/follow");
}else if(wangzhan==20){
system("start https://ke.kuding.cn/#/user/message");
}else if(wangzhan==21){
system("start https://ke.kuding.cn/#/user/setting");
}else if(wangzhan==22){
system("start https://ke.kuding.cn/#/course/index");
}else if(wangzhan==23){
system("start https://ke.kuding.cn/#/problem/problemList");
}else if(wangzhan==24){
system("start https://ke.kuding.cn/#/homework/sHomeworkList");
}else if(wangzhan==25){
system("start https://ke.kuding.cn/#/exam/examList");
}else if(wangzhan==26){
system("start https://ke.kuding.cn/#/examSim/examSimList");
}else if(wangzhan==27){
system("start https://ke.kuding.cn/#/examStage/examStages");
}else if(wangzhan==28){
system("start https://ke.kuding.cn/#/examMix/examMixList");
}else if(wangzhan==29){
system("start https://ke.kuding.cn/#/examrRating/examrRatingList");
}else if(wangzhan==30){
system("start https://ke.kuding.cn/#/noteBook/list");
}else if(wangzhan==31){
system("start https://ke.kuding.cn/#/errorBook/list");
}else if(wangzhan==32){
system("start https://ke.kuding.cn/#/ranking/seasonClass");
}else if(wangzhan==33){
system("start https://ke.kuding.cn/#/ranking/seasonRankList");
}else if(wangzhan==34){
system("start https://ke.kuding.cn/#/ranking/lastSeason");
}else if(wangzhan==35){
system("start https://ke.kuding.cn/#/ranking/ranking");
}else if(wangzhan==36){
system("start https://ke.kuding.cn/#/ranking/kings");
}else if(wangzhan==37){
system("start https://ke.kuding.cn/#/ranking/debugs");
}else if(wangzhan==38){
system("start https://ke.kuding.cn/#/ranking/rating");
}else if(wangzhan==39){
system("start https://ke.kuding.cn/#/netCourse/liveCourseList");
}else if(wangzhan==40){
system("start https://ke.kuding.cn/#/netCourse/netCourseList");
}else if(wangzhan==41){
system("start https://ke.kuding.cn/#/tree/treeMind");
}else{
cout<<"对不起,没有此网站信息";
}
}
cout<<endl;
}
return 0;
}
0
0
0
0
0
0
0