摘要:
看如下代码: 1 #include <iostream> 2 3 using namespace std; 4 5 class A { 6 public: 7 A() {}; 8 9 protected: 10 int m_a; 11 }; 12 13 class B : public A 14 { 阅读全文
摘要:
#include "pch.h" #include <iostream> #include <string> using namespace std; //用于全局的命名 std int func(int a) { static int c = 2; //此处c会随着函数的多次调用而变化,即多次使用 阅读全文