【正文】
} 。 return match。 i++) if (test == cp_num[i]) match = 1。 for (int i=0。 Vc++課程 設計 福彩游戲 10 return 0。 cout\nThank you for playing PowerBall name! :)endl。y39。y39。 play=play + 1。 coutname, would you like to play the game again? [y or n]endl。 (fucai)。 cout \nTotal Matches: ::total\n\n。 cout \n。 cout \n。 cout \n。 cout \n。 cout \nPlay play。 truematch[5]= isMatch(num[5],cp_num)。 truematch[3]= isMatch(num[3],cp_num)。 Vc++課程 設計 福彩游戲 9 truematch[1]= isMatch(num[1],cp_num)。 cp_num[5]=getgamenbr() 。 cp_num[3]=getgamenbr() 。 cp_num[1]=getgamenbr() 。 ()。 cout name, please enter your PowerBall number: 。 j。 j。 cout Sorry, that is an invalid entry. Please enter a number between 1 and 48. Thank you!\n。\n39。 while (!(cin num[j])) { ()。 j5。 int j。 Vc++課程 設計 福彩游戲 8 cout \nname, please enter your white ball numbers.\n。 do { int num [6]。()==0。 coutwele to fucai game nameendl。 ch=getch()。*39。 while(iN) { str[i++]=ch。 ()。 int i=0。 char str[20]。 coutPlease enter your name [1 to 20 characters]: 。 cout你贏的 money=12 除獎勵級別 乘以注數(shù) endl。 cout當你輸入六個數(shù)中有 5個與電腦產生的隨機數(shù)匹配時,獲二等獎 endl。 cout游戲規(guī)則 : endl。 cout\n。 cout\n。 CCustomer yonghu。 int truematch[6]。 int main() { char name[20], R