回复:谁能帮我看看这道 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

请您先登陆,再发跟帖!