上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: 昨天上午一次成功写完过于激动,就忘了来写笔记orz 做作业前很有帮助的几篇文章: 百度文库-bmp24位位图格式总结 一个特别厉害的同学知乎写的代码详解(没有用windows.h) 有一个特别厉害的同学四十几行就写完的代码(用了windows.h) 然后我的代码就是综合了上面的两者qwq 利用了前者 阅读全文
posted @ 2020-04-08 14:27 timeaftertime 阅读(938) 评论(0) 推荐(1) 编辑
摘要: 1.List 描述 写一个程序完成以下命令:new id ——新建一个指定编号为id的序列(id<10000)add id num——向编号为id的序列加入整数nummerge id1 id2——合并序列id1和id2中的数,并将id2清空unique id——去掉序列id中重复的元素out id 阅读全文
posted @ 2020-04-06 10:40 timeaftertime 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 1.goodcopy 编写GoodCopy类模板,使得程序按指定方式输出 1 #include <iostream> 2 using namespace std; 3 4 template <class T> 5 struct GoodCopy { 6 void operator()(T*s,T*e 阅读全文
posted @ 2020-04-01 22:44 timeaftertime 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1.简单的SumArray 1 //填写模板 PrintArray,使得程序输出结果是: TomJackMaryJohn 10 不得编写SumArray函数 2 3 #include <iostream> 4 #include <string> 5 using namespace std; 6 te 阅读全文
posted @ 2020-03-29 16:16 timeaftertime 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 我真的真的有必要单独为魔兽三写一个随笔!!!!!!!! 呜呜呜呜呜 暴风哭泣 22个小时,真的濒临崩溃,终于!!! 史诗级的时刻!!!! 我要把代码贴在这里: 1 #define _CRT_SECURE_NO_WARNINGS 2 // 魔兽世界3.cpp : 此文件包含 "main" 函数。程序执 阅读全文
posted @ 2020-03-26 17:54 timeaftertime 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1.全面的MyString 输出: 1. abcd-efgh-abcd-2. abcd-3.4. abcd-efgh-5. efgh-6. c7. abcd-8. ijAl-9. ijAl-mnop10. qrst-abcd-11. abcd-qrst-abcd- uvw xyzaboutbigme 阅读全文
posted @ 2020-03-22 16:35 timeaftertime 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 以后做完题一定要及时总结到博客里……不要拖着orz 而且我觉得作业都留的太巧妙了,不写作业掌握的都是假知识 1.看上去是多态 1 //程序填空产生指定输出 2 /* 3 输出 4 D::Fun 5 B::Fun 6 D::Fun 7 nBVal=2 8 nBVal=24 9 nDVal=8 10 B 阅读全文
posted @ 2020-03-22 16:23 timeaftertime 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1.全面的MyString 输入 无 输出 1. abcd-efgh-abcd-2. abcd-3.4. abcd-efgh-5. efgh-6. c7. abcd-8. ijAl-9. ijAl-mnop10. qrst-abcd-11. abcd-qrst-abcd- uvw xyzaboutb 阅读全文
posted @ 2020-03-15 16:52 timeaftertime 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1.MyString 补足MyString类,使程序输出指定结果 1 //补足MyString类,使程序输出指定结果 2 #include <iostream> 3 #include <string> 4 #include <cstring> 5 using namespace std; 6 cla 阅读全文
posted @ 2020-03-12 14:10 timeaftertime 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 先回顾一下第三次课学了啥: 1.this指针(指向成员函数所作用的对象) 2.静态成员 3.成员对象和封闭类 4.友元 5.常量成员函数 静态成员函数中,不能访问/调用非静态成员变量/函数,因为解释不了是在用哪个对象的。 如果想在对象生成时统计某项数据,消亡时减去,就有必要就要自己写复制构造函数,来 阅读全文
posted @ 2020-03-09 14:23 timeaftertime 阅读(383) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页