初始化 创建对象时赋予其一个初始值。 初始化形式 int temp = 0; int temp = {0}; int temp{0}; int temp(0); 赋值 把对象的当前值擦除,而以一个新值来替代。
评论区