![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
2
必须得开心呀
这个作者很懒,什么都没留下…
展开
-
20157:补足程序7
20157:补足程序7描述补足下面的程序,使得其输出结果是:18,20#include #include #include #include #include #include #include using namespace std;int main(){ inta[10] = {1, 3, 2, 10,7,原创 2016-10-08 22:26:07 · 397 阅读 · 0 评论 -
3w6:第三周程序填空题1
描述下面程序输出的结果是:4,6请填空:#include using namespace std;class A { int val; public: A(int n) { val = n; } int GetVal() { return val; }};class B: public A { pr原创 2016-10-08 22:59:34 · 4203 阅读 · 3 评论 -
第四周程序填空题2
4w4:第四周程序填空题2描述下面的MyInt类只有一个成员变量。MyInt类内部的部分代码被隐藏了。假设下面的程序能编译通过,且输出结果是:4,1请写出被隐藏的部分。(您写的内容必须是能全部放进 MyInt类内部的,MyInt的成员函数里不允许使用静态变量)。#include using namespace std;class MyInt { int n原创 2016-10-08 23:47:56 · 2550 阅读 · 0 评论 -
List
编程题#1 List来源: POJ (Coursera声明:在POJ上完成的习题将不会计入Coursera的最后成绩。)注意:总时间限制: 4000ms内存限制: 65536kB描述写一个程序完成以下命令:new id ——新建一个指定编号为id的序列(idadd id num——向编号为id的序列加入整数nummerge id1 id2——合并序列id1和id2中转载 2016-10-10 00:02:06 · 473 阅读 · 0 评论 -
20151:补足程序1
20151:补足程序1描述补足程序,使得下面程序输出的结果是:****100#include #include using namespace std;// 在此处补充你的代码string Print1() { return"****"; }int Print2() { return100;原创 2016-10-06 11:18:36 · 843 阅读 · 0 评论