lidaye2396

博客园 首页 新随笔 联系 订阅 管理

2020年7月28日 #

摘要: 今天又研究了一会链表,完成了小学期的第二个项目,附代码: #include<iostream>#include<fstream>#include<string>#include<vector>using namespace std;struct StudentInfo{int itsnumber;s 阅读全文
posted @ 2020-07-28 11:11 lidaye2396 阅读(84) 评论(0) 推荐(0) 编辑

2020年7月27日 #

摘要: 离小学期结束还有三天,今天完成了小学期的第二个项目,用标准函数库完成学生成绩管理系统。明天继续研究链表。 代码: #include<iostream>#include<fstream>#include<string>#include<vector>using namespace std;struct 阅读全文
posted @ 2020-07-27 11:55 lidaye2396 阅读(54) 评论(0) 推荐(0) 编辑

2020年7月26日 #

摘要: 今天完成了下学期的的第九个项目,链表实在没有学过,只能自学,一天下来确实没学到什么东西。明天一早坐火车,做一天多,不敲代码。 #include<bits/stdc++.h>using namespace std;list<int> a;bool flag = 0;class link{public: 阅读全文
posted @ 2020-07-26 11:55 lidaye2396 阅读(59) 评论(0) 推荐(0) 编辑

2020年7月25日 #

摘要: 今天完成小学期的第六个项目,也就是井字棋,井字棋的规矩是死的,先手有可能赢,后手最多平局。明天研究小学期的第七个项目。 附代码: #include <iostream>#include <time.h>#pragma onceusing namespace std;int win=0;class g 阅读全文
posted @ 2020-07-25 11:55 lidaye2396 阅读(77) 评论(0) 推荐(0) 编辑

2020年7月24日 #

摘要: #include <iostream>#include <time.h>using namespace std;class game{public:int h,m,s,sum;void input(){cout<<"请输入游戏时间(时分秒):"<<endl;cin>>h>>m>>s;}void gu 阅读全文
posted @ 2020-07-24 11:55 lidaye2396 阅读(41) 评论(0) 推荐(0) 编辑

2020年7月23日 #

摘要: 今天完成了小学期的第一个项目,颇为麻烦,在网上搞懂了结构体的输入输出运算符重载,方便了不少,附代码: #include <iostream>#include <string>#include <fstream>using namespace std;string file;struct Studen 阅读全文
posted @ 2020-07-23 11:11 lidaye2396 阅读(50) 评论(0) 推荐(0) 编辑

2020年7月21日 #

摘要: 今天研究了小学期的第五个项目,剪刀石头布,就简单的简单石头布而言,运用随机数函数取3的余数就能完成,但项目要求程序能通过游戏总结规律,提高获胜的概率,这一点实在有点麻烦,还没有总结出来。 部分代码: #include <iostream>#include <cstdlib>#include <cti 阅读全文
posted @ 2020-07-21 11:51 lidaye2396 阅读(37) 评论(0) 推荐(0) 编辑

2020年7月20日 #

摘要: 今天研究了小学期的第五个项目,剪刀石头布,就简单的简单石头布而言,运用随机数函数取3的余数就能完成,但项目要求程序能通过游戏总结规律,提高获胜的概率,这一点实在有点麻烦,还没有总结出来。 部分代码: #include <iostream>#include <cstdlib>#include <cti 阅读全文
posted @ 2020-07-20 01:50 lidaye2396 阅读(28) 评论(0) 推荐(0) 编辑

2020年7月19日 #

摘要: 今天完成小学期的第四个任务,只是用函数实现空间几何的部分算法,并无太多难点。代码: #include <iostream>#include <iomanip>using namespace std;class Point{public:double x;double y;double z;Point 阅读全文
posted @ 2020-07-19 11:00 lidaye2396 阅读(38) 评论(0) 推荐(0) 编辑

2020年7月18日 #

摘要: 今天完成小学期的第四个任务,只是用函数实现空间几何的部分算法,并无太多难点。代码: #include <iostream>#include <iomanip>using namespace std;class Point{public:double x;double y;double z;Point 阅读全文
posted @ 2020-07-18 15:00 lidaye2396 阅读(42) 评论(0) 推荐(0) 编辑