C++ 变量初始化

方法一:

int iMaxNum = 0;

方法二:

int iMaxNum( 0 );

方法三:

int iMaxNum{ 0 };

原文地址:https://www.cnblogs.com/maintain20111221/p/12284395.html