随笔分类 -  程序设计与算法(三)C++面向对象程序设计(2018春季)

摘要:题目网址:http://cxsjsxmooc.openjudge.cn/2018t3springw9/ 【1:Set】 用multiset记录当前整数集数据信息 用set记录曾被加入集合的数 1 #include <iostream> 2 #include <set> 3 #include <str 阅读全文
posted @ 2018-05-20 18:15 咖啡君056 阅读(852) 评论(0) 推荐(0)
摘要:题目网址:http://cxsjsxmooc.openjudge.cn/2018t3springw8/ 【1:goodcopy】 注意从后往前复制即可 1 template <class T> 2 struct GoodCopy { 3 public: 4 void operator() (T* f 阅读全文
posted @ 2018-05-18 15:44 咖啡君056 阅读(710) 评论(0) 推荐(0)
摘要:题目网址:http://cxsjsxmooc.openjudge.cn/2018t3springw7/ 【1:简单的SumArray】 1 #include <iostream> 2 #include <string> 3 using namespace std; 4 template <class 阅读全文
posted @ 2018-05-04 21:23 咖啡君056 阅读(943) 评论(0) 推荐(0)
摘要:题目网址:http://cxsjsxmooc.openjudge.cn/2018t3springw5/2/ 【题目描述】 程序填空,输出指定结果 输入 无 输出 【提示】 提示 1:如果将程序中所有 "MyString" 用 "string" 替换,那么除了最后两条红色的语句编译无法通过外,其他语句 阅读全文
posted @ 2018-04-21 11:37 咖啡君056 阅读(511) 评论(0) 推荐(0)
摘要:题目网址:http://cxsjsxmooc.openjudge.cn/2018t3springw5/1/ 【题目描述】 程序填空,输出指定结果 输入 无 输出 【题解】 阅读全文
posted @ 2018-04-19 23:18 咖啡君056 阅读(1521) 评论(0) 推荐(0)
摘要:题目网址:http://cxsjsxmooc.openjudge.cn/2018t3springw2/002/ 【题目描述】 描述 程序填空,使其输出9 22 5 输入 无 输出 9225 【代码】 阅读全文
posted @ 2018-04-13 14:00 咖啡君056 阅读(341) 评论(0) 推荐(0)
摘要:网址:http://cxsjsxmooc.openjudge.cn/2018t3springw2/001/ 【题目描述】 实现一个学生信息处理程序,计算一个学生的四年平均成绩。 要求实现一个代表学生的类,并且类中所有成员变量都是【私有的】。 补充下列程序中的 Student 类以实现上述功能。 【附 阅读全文
posted @ 2018-04-13 11:29 咖啡君056 阅读(792) 评论(0) 推荐(0)