摘要: 题目网址: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 阅读(809) 评论(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 阅读(663) 评论(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 阅读(902) 评论(0) 推荐(0) 编辑
摘要: 题目网址:http://cxsjsxmooc.openjudge.cn/2018t3springw5/2/ 【题目描述】 程序填空,输出指定结果 输入 无 输出 【提示】 提示 1:如果将程序中所有 "MyString" 用 "string" 替换,那么除了最后两条红色的语句编译无法通过外,其他语句 阅读全文
posted @ 2018-04-21 11:37 咖啡君056 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 题目网址:http://cxsjsxmooc.openjudge.cn/2018t3springw5/1/ 【题目描述】 程序填空,输出指定结果 输入 无 输出 【题解】 阅读全文
posted @ 2018-04-19 23:18 咖啡君056 阅读(1484) 评论(0) 推荐(0) 编辑
摘要: 题目网址:http://cxsjsxmooc.openjudge.cn/2018t3springw2/002/ 【题目描述】 描述 程序填空,使其输出9 22 5 输入 无 输出 9225 【代码】 阅读全文
posted @ 2018-04-13 14:00 咖啡君056 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 网址:http://cxsjsxmooc.openjudge.cn/2018t3springw2/001/ 【题目描述】 实现一个学生信息处理程序,计算一个学生的四年平均成绩。 要求实现一个代表学生的类,并且类中所有成员变量都是【私有的】。 补充下列程序中的 Student 类以实现上述功能。 【附 阅读全文
posted @ 2018-04-13 11:29 咖啡君056 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 【前言】 这学期C++课老师要求安装一个Eclipse for C++,折腾了几个小时查阅各种资料终于弄好了,下面分享一下个人的安装心得。 【安装Eclipse】 Eclipse安装地址:http://www.eclipse.org/downloads/packages/eclipse-ide-cc 阅读全文
posted @ 2018-03-08 21:21 咖啡君056 阅读(7256) 评论(1) 推荐(1) 编辑