CPT项目

696 3
开朗的盟员 2024-3-24 22:09:03 | 显示全部楼层 |阅读模式
详见上一篇
  1. #include<iostream>
  2. #include<windows.h>
  3. void into();
  4. void chushi();
  5. using namespace std;
  6. int main()
  7. {
  8.         //main函数不载入代码,方便后面的功能,直接调用函数进入正题
  9.         into();
  10. }

  11. void into()
  12. {
  13.         cout<<"CPT,零基础入门C++  :)"<<endl;
  14.         Sleep(2*1000);
  15.         system("cls");
  16.         cout<<"louding..."<<endl;
  17.         return;
  18.          
  19. }
  20. void chushi()
  21. {
  22.        
  23. }
复制代码

之后的话,当代码写到一定规模会另开主题
开朗的盟员 2024-3-24 22:18:33 | 显示全部楼层
  1. #include<iostream>
  2. #include<windows.h>
  3. void into();
  4. void chushi();
  5. void jieshao();
  6. using namespace std;
  7. int main()
  8. {
  9.         //main函数不载入代码,方便后面的功能,直接调用函数进入正题
  10.         into();
  11. }

  12. void into()
  13. {
  14.         cout<<"CPT,零基础入门C++  :)"<<endl;
  15.         Sleep(2*1000);
  16.         system("cls");
  17.         cout<<"louding..."<<endl;
  18.         chushi();
  19.         return;
  20.          
  21. }
  22. void chushi()
  23. {
  24.         system("cls");
  25.         cout<<"加载完毕!"<<endl;
  26.         system("cls");
  27.         cout<<"1.介绍"<<endl;
  28.         cout<<"2.学习"<<endl;
  29.         cout<<"3.设置"<<endl;
  30.         cout<<"4.我的"<<endl;//这里打算用文件命令存储个人信息,然后存在固定路径,用户使用时访问in文件,输出
  31.         int cho=0;//选择
  32.         cout<<"输入选项:";
  33.         cin>>cho;
  34.         switch(cho){
  35.     case  1 :
  36.        jieshao();
  37.        break; // 可选的
  38.    
  39.     default : // 可选的
  40.        break;
  41.         }
  42. }

  43. void jieshao()
  44. {
  45.        
  46. }

复制代码
开朗的盟员 2024-3-24 22:21:27 | 显示全部楼层
2024.3.24   22:21
  1. #include<iostream>
  2. #include<windows.h>
  3. void into();
  4. void chushi();
  5. void jieshao();
  6. void learn();
  7. void my();
  8. void set();
  9. using namespace std;
  10. int main()
  11. {
  12.         //main函数不载入代码,方便后面的功能,直接调用函数进入正题
  13.         into();
  14. }

  15. void into()
  16. {
  17.         cout<<"CPT,零基础入门C++  :)"<<endl;
  18.         Sleep(2*1000);
  19.         system("cls");
  20.         cout<<"louding..."<<endl;
  21.         chushi();
  22.         return;
  23.          
  24. }
  25. void chushi()
  26. {
  27.         system("cls");
  28.         cout<<"加载完毕!"<<endl;
  29.         system("cls");
  30.         cout<<"1.介绍"<<endl;
  31.         cout<<"2.学习"<<endl;
  32.         cout<<"3.设置"<<endl;
  33.         cout<<"4.我的"<<endl;//这里打算用文件命令存储个人信息,然后存在固定路径,用户使用时访问in文件,输出
  34.         int cho=0;//选择
  35.         cout<<"输入选项:";
  36.         cin>>cho;
  37.         switch(cho){
  38.     case  1 :
  39.        jieshao();
  40.        break; // 可选的
  41.    
  42.     default : // 可选的
  43.        break;
  44.         }
  45. }

  46. void jieshao()
  47. {
  48.        
  49. }

  50. void learn()
  51. {
  52.        
  53. }

  54. void my()
  55. {
  56.        
  57. }

  58. void set()
  59. {
  60.        
  61. }
复制代码
开朗的盟员 2024-4-5 09:30:33 | 显示全部楼层
先上传个进度
2024.4.5
祝各位清明节快乐!
  1. /*
  2. 参考文献

  3. 文件读入写出 :
  4. https://blog.csdn.net/weixin_43918046/article/details/106367507

  5. */
  6. #include<bits/stdc++.h>
  7. #include<iostream>
  8. #include<string>
  9. #include<windows.h>
  10. #include<fstream>
  11. void into();
  12. void chushi();
  13. void jieshao();
  14. void learn();
  15. void my();
  16. void shezhi();
  17. void com();
  18. using namespace std;
  19. int main()
  20. {
  21.         //main函数不载入代码,方便后面的功能,直接调用函数进入正题 ,缺点是打开程序时间较长
  22.         into();
  23. }

  24. void into()
  25. {
  26.         cout<<"CPT,零基础入门C++  :)"<<endl;
  27.         Sleep(2*1000);
  28.         system("cls");
  29.         cout<<"louding..."<<endl;
  30.         chushi();
  31.         return;
  32. }
  33. void chushi()
  34. {
  35.         system("cls");
  36.         cout<<"加载完毕!"<<endl;
  37.         system("cls");
  38.         cout<<"1.介绍"<<endl;
  39.         cout<<"2.学习"<<endl;
  40.         cout<<"3.设置"<<endl;
  41.         cout<<"4.我的"<<endl;//这里打算用文件命令存储个人信息,然后存在固定路径,用户使用时访问in文件,输出
  42.         cout<<"5.命令行模式"<<endl;
  43.         int cho=0;//选择
  44.         cout<<"输入选项:";
  45.         cin>>cho;
  46.         switch(cho){
  47.     case  1 :
  48.        jieshao();
  49.        break; // 可选的
  50.    
  51.     case  2 :
  52.        learn();
  53.        break; // 可选的
  54.       
  55.     case  3 :
  56.        shezhi();
  57.        break; // 可选的
  58.       
  59.     case  4 :
  60.        my();
  61.        break; // 可选的
  62.       
  63.     case  5 :
  64.        com();
  65.        break; // 可选的
  66.    
  67.     default : // 可选的
  68.     chushi();
  69.        break;
  70.         }
  71. }

  72. void jieshao()
  73. {
  74.         system("cls");
  75.         cout<<"加载完毕!"<<endl;
  76.         system("cls");
  77.         cout<<"1.我们是做什么的"<<endl;
  78.         cout<<"2.特殊操作指令"<<endl;
  79.         cout<<"3.返回"<<endl;
  80.         int cho;
  81.         cin>>cho;
  82.         if (cho==2)
  83.         {
  84. /*
  85. 说明文字原文
  86. 1.在初始进入页面选择选项【5】进入命令行模式
  87. 2.选择Y/N进入或退出
  88. 3.即可开始命令行操作

  89. 命令部分:
  90. pause:同cmd
  91. cls:同cmd
  92. tree:程序占用的路径目录
  93. lesson <int:课程章> <int:课程节>:选择课程
  94. language <编程语言名> :学习其他语言
  95. language <程序定义的编程语言代号> :同上

  96. */
  97.                 system("cls");
  98.                 cout<<"暂未开发"<<endl;
  99.         }
  100.         else if (cho==1)
  101.         {
  102.                 system("cls");
  103.                 cout<<"面向人群:编程爱好者,完全0基础"<<endl;
  104.                 cout<<"教授语言:暂定仅C++(当然,其他语言的可以保留备用,请备注说明)"<<endl;
  105.                 cout<<"要求:要有交互性,说法通俗易懂,全程将开发三个程序:1.C++语言基础2.C++算法基础3.C++数据结构(预计日后其他语言也是这个套路)"<<endl;
  106.                 cout<<"目前开发阶段:1.C++语言基础"<<endl;
  107.                 cout<<"项目发起者:开朗的盟员"<<endl;
  108.                 cout<<"程序名称:CPT"<<endl<<endl;
  109.                 cout<<"以上皆选自中国红客联盟官网-开源项目"<<endl;
  110.                 system("pause");
  111.                 jieshao();
  112.         }
  113.         else if (cho==3) return;
  114.        
  115. }

  116. void learn()
  117. {
  118.        
  119. }

  120. void my()
  121. {
  122.         system("cls");
  123.         cout<<"未登录"<<endl;
  124.         cout<<"选择登陆方式:"<<endl;
  125.         cout<<"1.用户名/密码"<<endl;
  126.         cout<<"2.用户代码"<<endl;
  127.         int cho;
  128.         cin>>cho;
  129.         if (cho==1)
  130.         {
  131.                 cout<<"暂未开发"<<endl;
  132.         }
  133.         if (cho==2)
  134.         {
  135.                 cout<<"暂未开发"<<endl;
  136.         }
  137. }

  138. void shezhi()
  139. {
  140.         system("cls");
  141.         cout<<"开发中"<<endl;
  142.         system("pause");
  143.         chushi();
  144. }

  145. void com()
  146. {
  147.         system("cls");
  148.         cout<<"开发中。。。"<<endl;
  149.         system("pause");
  150.         chushi();
  151. }
  152. /*void com()
  153. {
  154.         system("cls");
  155.         cout<<"加载完毕!"<<endl;
  156.         system("cls");
  157.         cout<<"您确认进入命令行模式(Y/N),详细命令请见介绍板块"<<endl;
  158.         char a;
  159.         cin>>a;
  160.         if (a=='N' || a=='n')
  161.         {
  162.                 chushi();
  163.         }
  164.         else if(a=='Y' || a=='y') system("cls");
  165.         else com();
  166.         cout<<"加载完毕!"<<endl;
  167.         system("cls");
  168.        
  169. }
  170. */




  171. //以下是课程设计程序

复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

开朗的盟员

中级红客

关注
  • 62
    主题
  • 9
    粉丝
  • 5
    关注
各位好,本人的号可能被登,且并非本人使用,请注意核实!

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行