类内成员变量直接初始化小记

Code:

#include "iostream"
#include "cstdlib"
using namespace std;

class Test
{
      public :
      void setNum(){num5++;}
      void printNum(){cout<



Results:


你可能感兴趣的:(C/C++)