上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 121 下一页
摘要: #include #include using namespace std; class Person { public: //无参(默认)构造函数 Person() { cout << "no" << endl; } //有参构造函数 Person(int a) { age = a; cout << "... 阅读全文
posted @ 2019-06-27 17:12 wdliming 阅读(676) 评论(0) 推荐(0)
摘要: members shall be initialized in the member initialization list,这个时候,必须使用member initialization list来初始化,因为类中嵌套了另一个类。 阅读全文
posted @ 2019-06-23 21:57 wdliming 阅读(557) 评论(0) 推荐(0)
摘要: 运行结果: 指向class的指针。 This example makes use of several operators to operate on objects and pointers (operators *, &, ., ->, []). They can be interpreted 阅读全文
posted @ 2019-06-23 21:55 wdliming 阅读(618) 评论(0) 推荐(0)
摘要: Member initialization in constructorsWhen a constructor is used to initialize other members, these other members can be initialized directly, without 阅读全文
posted @ 2019-06-23 21:47 wdliming 阅读(700) 评论(0) 推荐(0)
摘要: http://www.cplusplus.com/ 有各个函数、语法的实例代码,可以在线运行http://cpp.sh/不支持中文字符,不错。 阅读全文
posted @ 2019-06-23 17:54 wdliming 阅读(8044) 评论(0) 推荐(0)
摘要: https://github.com/Skiars/SerialTool A cross platform Serial-Port/TCP/UDP debugging tool. SerialTool是一个跨平台的串口/网络调试工具。此工具支持串口调试助手、终端、波形显示和文件传输等功能。该工具的源 阅读全文
posted @ 2019-06-23 17:53 wdliming 阅读(4020) 评论(0) 推荐(0)
摘要: 嵌入式脚本语言 Berry github网址 :https://github.com/Skiars/berry Berry 是一款面向小型嵌入式系统的脚本语言,目前发布了 0.1.0 版本。相比于其他脚本语言,Berry 更加精简,因此更适合在单片机上运行。该版本的语言主要特性为: 基本类型 数值类 阅读全文
posted @ 2019-06-23 17:50 wdliming 阅读(868) 评论(0) 推荐(0)
摘要: #include #include #include #include using namespace std; int main() { vector fi; cout se(6,20); cout::iterator it = se.begin(); it th(se.begin()+2,se.end()); cout::iterator it = th.begin();... 阅读全文
posted @ 2019-06-23 16:03 wdliming 阅读(861) 评论(0) 推荐(0)
摘要: 一、什么是vector? 向量(vector)是一个封装了动态大小数组的顺序容器(Sequence Container)。跟任意其它类型容器一样,它能够存放各种类型的对象。可以简单的认为,向量是一个能够存放任意类型的动态数组。 二、容器特性 1.顺序序列 顺序容器中的元素按照严格的线性顺序排序。可以 阅读全文
posted @ 2019-06-23 15:49 wdliming 阅读(1353) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; class MySTLString { public: MySTLString(); MySTLString(int count, char ch); MySTLString(const char* s); const char& front() const; const... 阅读全文
posted @ 2019-06-23 09:58 wdliming 阅读(189) 评论(0) 推荐(0)
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 121 下一页