No compile error, but output is nothing but a flashing cursor, maybe this is an infinite loop?? can someone help with this.
Here is the function code:
Expand|Select|Wrap|Line Numbers
- //*************************** FillCard Function *******************************
- void fillCard ( int card [] [csize] )
- {
- for ( int col = 0; col < csize ; col++ )
- {
- for ( int row = 0; row < csize ; row++ )
- {
- bool samenum = false;
- int num1 = rand ()% 15 * col;
- do{
- for(int check = 0; check < row; check++){
- if (num1 == card[check][col])
- samenum = true;
- }}while (samenum);
- card[col][row] = num1;
- }
- }
- }
- //**************************END of FILLCARD ***********************************
Thanks for the help always - - - - - - - - - - - - - - - - - - - -