iOS
-
C++多重继承
#include <iostream> using namespace std; // Base class Shape class Shape { public: v…
-
C++基础和派生类
#include <iostream> using namespace std; // Base class class Shape { public: void se…
-
C++静态成员函数
#include <iostream> using namespace std; class Box { public: static int objectCount;…
-
C++静态成员
#include <iostream> using namespace std; class Box { public: static int objectCount;…
-
C++指向类的指针
#include <iostream> using namespace std; class Box { public: // Constructor definiti…
-
C++ this指针
#include <iostream> using namespace std; class Box { public: // Constructor definiti…
-
C++内联函数
#include <iostream> using namespace std; inline int Max(int x, int y) { return (x &g…
-
C++友元函数
#include <iostream> using namespace std; class Box { double width; public: friend vo…
-
C++使用另一个对象复制构造函数
#include <iostream> using namespace std; class Line { public: int getLength( void );…
-
C++拷贝构造函数
#include <iostream> using namespace std; class Line { public: int getLength( void );…