会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
\思无邪\
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2018年6月17日
实验7
摘要: #include #include #include #include #include #include using namespace std; class stu{ private: int order; string id,name,cla; public: stu(const stu &p); stu(int orderx,string idx,string nam...
阅读全文
posted @ 2018-06-17 17:54 \思无邪\
阅读(155)
评论(0)
推荐(0)
编辑
2018年6月3日
实验6
摘要: class F{ private: int m,n; public: F(int,int); int add(); }; class A:public F{ private: int m,n; public: A(int,int); int sub(); }; class B:public F{ private: int m,...
阅读全文
posted @ 2018-06-03 13:25 \思无邪\
阅读(154)
评论(0)
推荐(0)
编辑
2018年5月22日
实验5
摘要: 用指针
阅读全文
posted @ 2018-05-22 10:06 \思无邪\
阅读(180)
评论(0)
推荐(0)
编辑
2018年5月6日
测试
摘要: int * const p 常量类型的指针,只能指向一个变量,不可更改 ,可以相互改变值 const int *p 指向常量的指针,不可改变值;如果指向变量,可以通过改变变量的值来改变*p的值,反之不行 int const *p 感觉同上
阅读全文
posted @ 2018-05-06 16:16 \思无邪\
阅读(156)
评论(2)
推荐(0)
编辑
2018年4月21日
c++实验4
摘要: #include #include "graph.h" using namespace std; int main() { Graph graph1('*',5), graph2('$',7) ; // 定义Graph类对象graph1, graph2 graph1.draw(); // 通过对象graph1调用公共接口draw()在屏幕上绘制图形 gr...
阅读全文
posted @ 2018-04-21 22:25 \思无邪\
阅读(242)
评论(1)
推荐(0)
编辑
2018年4月7日
c++实验3
摘要: 实验4-11中,我定义的是float型变量,但不论我怎么输入,输出的都是整型,我不知道哪里出错了,希望有大神能帮我解决。 实验4-20中有很多我还不怎么理解,只是照葫芦画瓢,其中第一个complex(float,float)如果赋了初值,则int main中出现错误,也希望大神能够解答。
阅读全文
posted @ 2018-04-07 10:33 \思无邪\
阅读(210)
评论(3)
推荐(0)
编辑
2018年3月24日
c++实验2
摘要: #include using namespace std; int main() { char x; cout>x; if(x=='Q') break; if(x=='A') { cout using namespace std; int main() { char x; cout>x; switch(x) { case 'A':cout using n...
阅读全文
posted @ 2018-03-24 17:10 \思无邪\
阅读(165)
评论(0)
推荐(0)
编辑
2018年3月16日
c++实验1
摘要: #include using namespace std; int main() { int day; cin>>day; switch(day) { case 1: case 2: case 3: case 4: case 5:cout using namespac...
阅读全文
posted @ 2018-03-16 17:41 \思无邪\
阅读(157)
评论(0)
推荐(0)
编辑