Java?е??????????????м仺?????????
???????????? ???????[ 2012/9/19 9:51:25 ] ????????
??????????????????γ???
public static void main(String[] args){ int i?? sum1?? sum2; i=0; sum1 = (i++)+(i++); System.out.println("sum1="+sum1); i = 0; sum2 = (++i)+(++i); System.out.println("sum2="+sum2); } |
???????????н?????
sum1=1 sum2=3 |
??????????c?????д??????????????????????????
void main()
i=0;
i=0;
getchar(); |
???????????н?????
sum1=0 sum2=4 |
?????????????????c?????У????????????????????????????????????????????????????????????????????????????????????????????д???
????????java?У????sum1=(i++)+(i++);??????2???????????????????????洢????????????????
????java???????????м仺???????????
???????????????????????????????????
public static void main(String[] args){ int j = 0; for(int i = 0; i < 100; i++) j = j++; System.out.println(j); } |
??????java?????j????????0??
???????java???м仺??????????j=j++??俴????????2?????
temp = j; j = j + 1; j = temp; |
?????????????????????????????????????????б?????ú?????????????????
??????????????????Щ???????м仺???????????????????????????0??????C++????Щ????????????????????к?????????????????????????м仺????????????
??????

???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11