求告知为啥不是int age1=--age1;而是int newAge=--age1;
age1 已经定义过了 你在前面再加上int 等于是在重复声明一个变量 你可以直接age1=--age1 但是不能int age1=--age1
age1还没初始化