C++
马踏飞燕ll
静 净 竞
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
代码详解c++类作用域
/*代码详解c++类作用域的相关知识*/#include <iostream>#include <string>using namespace std;void doA(){ int a; a=12;}void doB(){ int b; b=99;}class First{ publi...原创 2019-03-08 18:35:08 · 296 阅读 · 0 评论 -
c++静态static
#include<iostream>#include<string>/*尽量使用staticstatic 函数不能使用This 指针 */ using namespace std;//全局变量保存//double interestRate;class Dog{ }; class Account { public: Account(...原创 2019-03-13 22:25:12 · 186 阅读 · 0 评论 -
代码详解c++构造函数
/*代码详解构造函数 */#include <iostream>#include<string>using namespace std;class Person{ public: Person (const std::string &nm) :name(nm),age(22) { } public: std::stri...原创 2019-03-09 14:41:59 · 428 阅读 · 0 评论 -
代码详解c++ 三种友元函数
#include<iostream> #include<string>using namespace std;class Screen;class Dog{ public: int foo(Screen & screen); };class Screen{ public: friend int calcArea(Screen...原创 2019-03-11 22:56:35 · 400 阅读 · 0 评论
分享