求指點,感覺這些選項都有問題
求指點:選項B——“int score[ ] = new int[ ] { 34, 90, 87, 54, 24 };”是不是應(yīng)該為“int[ ] score = new int[ ] { 34, 90, 87, 54, 24 };”?
求指點:選項B——“int score[ ] = new int[ ] { 34, 90, 87, 54, 24 };”是不是應(yīng)該為“int[ ] score = new int[ ] { 34, 90, 87, 54, 24 };”?
2016-01-08
舉報
2016-06-09
int score[] = new int[]{34,90,87,54,24}; ? 沒有這種數(shù)組類型!
2016-01-08
int score[] = new int[]{34,90,87,54,24}; 和
int[] score = new int[ ] {34,90,87,54,24}; 都可以的。
? ? int a[];
? ? int[] a;
這兩種形式?jīng)]有區(qū)別,使用效果完全一樣,可根據(jù)自己的編程習(xí)慣選擇。
只是一般說int數(shù)組 直觀上的就寫成了int[].
2016-01-08
都是對的。。。
2016-01-08
數(shù)據(jù)類型[]數(shù)組名;或者數(shù)據(jù)類型 數(shù)組名 [];都可以的 ?應(yīng)該是。 我也是剛學(xué)。
2016-01-08
?是的,確實出錯了。@內(nèi)部人員