上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页
摘要: C++允许在旧类的基础上建立新类,即派生类 创建方法: class b_stack:public stack{} b_stack为基类stack的派生类 待补充。。 阅读全文
posted @ 2018-04-17 17:22 小雨滴答 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 转:https://blog.csdn.net/ccf19881030/article/details/9247235 阅读全文
posted @ 2018-04-16 18:46 小雨滴答 阅读(90) 评论(0) 推荐(0) 编辑
摘要: __super:: 它代表本类的基类, 阅读全文
posted @ 2018-04-16 11:18 小雨滴答 阅读(113) 评论(0) 推荐(0) 编辑
摘要: https://zhidao.baidu.com/question/32424351.html整理 阅读全文
posted @ 2018-04-16 10:02 小雨滴答 阅读(69) 评论(0) 推荐(0) 编辑
摘要: C++的auto_ptr所做的事情,就是动态分配对象以及当对象不再需要时自动执行清理。 使用std::auto_ptr,要#include <memory>。 阅读全文
posted @ 2018-04-13 09:30 小雨滴答 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 using namespace std; 3 4 class Box 5 { 6 double width; 7 public: 8 friend void printWidth( Box box ); //printWidth()为Box的友元 9 阅读全文
posted @ 2018-04-12 08:58 小雨滴答 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 看代码 编译没有错误,证明实例化成功 若将public改为private或protected,再运行则出现错误 证明构造函数私有化之后,无法被外部调用,这就涉及到了单件 只能被类内部的成员函数调用,所以可以弄一个共有函数去供外部调用,然后这个函数返回一个对象,为了保证多次调用这个函数返回的是一个对象 阅读全文
posted @ 2018-04-11 16:24 小雨滴答 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 解决方法: 修改工程属性页的配置属性 调试中的远程可执行文件的路径 部署中的远程目录的路径 阅读全文
posted @ 2018-04-10 15:48 小雨滴答 阅读(160) 评论(0) 推荐(0) 编辑
摘要: %06d : %是格式化输入接受参数的标记 0格式化命令:结果将用零来填充 6:填充位数 d:代表十进制 数据 printf(“%06d\n”,x); console: 000001 000002 000003 000004 000005 000006 000007 000008 000009 阅读全文
posted @ 2018-04-08 14:44 小雨滴答 阅读(537) 评论(0) 推荐(0) 编辑
摘要: https://www.bejson.com/convert/ox2str/ 阅读全文
posted @ 2018-04-04 11:40 小雨滴答 阅读(4231) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页