该文被密码保护。 阅读全文
posted @ 2020-11-16 09:38 fndefbwefsowpvqfx 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-11-16 09:34 fndefbwefsowpvqfx 阅读(0) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <random> using namespace std; class Foo { public: Foo(); ~Foo(); Foo(const Foo&); Foo & operator=(const Foo&); }; Foo::Fo 阅读全文
posted @ 2020-11-16 09:31 fndefbwefsowpvqfx 阅读(67) 评论(0) 推荐(0) 编辑
摘要: TString.h #ifndef TSTRING_H #define TSTRING_H #include <iostream> #include <cstdlib> //类的编译,先处理成员变量,后处理函数,所以不用太在意成员变量与成员函数的顺序。 class TString { //集中在头部 阅读全文
posted @ 2020-11-16 09:29 fndefbwefsowpvqfx 阅读(96) 评论(0) 推荐(0) 编辑
摘要: //This one actually compiles to assembly that doesn't have any conditionals: #include <stdio.h> #include <stdlib.h> void main(int j) { printf("%d\n", 阅读全文
posted @ 2020-11-16 09:11 fndefbwefsowpvqfx 阅读(52) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; class Composition{ public: //同时有类内初始值和初始化列表时候,最终值为初始化列表中的 Composition():im(this),m(20){cout<<"Composition ctor 阅读全文
posted @ 2020-11-16 09:06 fndefbwefsowpvqfx 阅读(77) 评论(0) 推荐(0) 编辑