Here is the full Code couldn't attach it...
CODE
// The Game of Bingo
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <iomanip>
#include <string>
using namespace std;
const int csize = 5;
void fillCard ( int card [ ] [csize] );
void displayCard ( int card [][csize] );
char drawNum ( int & num, bool checkAray[] );
string check4match ( int num, int cardAray [][csize] );
string check4win ( int cArray [][csize] );
//********************************* MAIN FUNCTION ******************************
int main ( )
{
int bingoCard[csize][csize] = {{0},{0}};
bool chkArray [76] = { false };
int row, col, num;
bool noWin = true;
string win;
srand( time ( NULL ) );
fillCard( bingoCard );
while ( noWin )
{
system("cls");
displayCard( bingoCard );
cout << " " << drawNum( num, chkArray ) << " " << num;
cout << endl << endl;
cout << " " << check4match( num, bingoCard ) << endl << endl;
win = check4win( bingoCard );
system("pause");
if ( win == "BINGO!!" )
{
system("cls");
noWin = false;
cout << endl << setw(16) << win << endl << endl;
displayCard( bingoCard );
cout << endl << endl;
}
else
noWin = true;
}
system("pause");
return 0;
}
//***************************** END of Main ***********************************
//*************************** 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[row][col] = num1;
}
}
}
//**************************END of FILLCARD ***********************************
//************************ DisplayCard Function *******************************
void displayCard ( int card [][csize] )
{
for ( int col = 0; csize < col; col++ )
{
for ( int row = 0; csize < row; row++ )
{
cout << setw(5) <<card[col][row];
cout<<endl;
}
} cout << "The displayCard function has not been defined yet." << endl;
}
//****************************** END of DISPLAYCARD ****************************
//******************************* DrawNum Function *****************************
char drawNum ( int & num, bool checkAray[] )
{
num = 0;
return 'B';
}
//******************************END of DRAWNUM ********************************
//**************************** check4match Function ***************************
string check4match ( int num, int cardAray [][csize] )
{
return "Match check has not been defined yet.";
}
//************************* END of CHECK4MATCH ********************************
//************************* check4win Function ********************************
string check4win ( int cArray [][csize] )
{
return "BINGO!!";
}
//********************************* END of CHECK4WIN **************************