回複:誰能幫我看看這道 java題??

本帖於 2004-02-06 15:24:48 時間, 由普通用戶 old-cotton 編輯

// Declare an array to hold the return values
int *freq = new int[numFaces+1];
// Initialize it
for (int a = 0; a freq[a] = 0;
// roll the dice for n times
for(int i = 0; i{
int j;
j = roll();
freq[j] += 1;
}
// return the results
return freq;



--文學城www.wenxuecity.com--

所有跟帖: 

sorry, some text get lost. -wqeasddsad- 給 wqeasddsad 發送悄悄話 (68 bytes) () 12/16/2003 postreply 06:21:00

請您先登陸,再發跟帖!