413 名前:名無しさん@涙目です。(江戸城)[sage] 投稿日:2011/10/15(土) 19:40:51.49 ID:cYZNCFwR0 [4/4]
>>400
string[] deal(int player, string card){
string[] hand=new string[player];
while(card.Length/player>0){
for(int i=0;i<player;i++){
hand[i]+=card[i];
}
card=card.substring(player,card.Length);
}
return hand;




こういう解答がありました。
コンパイルさせて確認したいのですが、cardはいつ配列として宣言されてるのですか?
これはdealというストリング型の配列の関数なのですか?