举个例子
令a=7;则x=a++,指的是x先等于a。然后a再自己加;
而x=++a,是a先加,x然后等于加完的结果;
如果是x=a++,return x=7,a=8;
如果是x=++a,return a=7,x=8;