still cannot compile...why??please help me on this...

#include<iostream>
#include<cmath>
#include<iomanip>

using namespace std;

void GetPlayersNames(char[],char[]);
void ShowPlayersNames(char[],char[]);
void ShowTitle();
void GameBoard();
void Pause();
void ClearScreen();
void PlayersLegends();
void Player1(char[],char[]);
void Player2(char[],char[]);
void TheGame(char[],char[]);


int main()
{
char player1[50],player2[50];

ShowTitle();
GetPlayersNames(player1,player2);

return 0;

}

void GetPlayersNames(char player1[50],char player2[50])
{
const int SIZE=50;

cout<<"Enter player 1 name=";
cin.getline(player1,SIZE);

cout<<"Enter player 2 name=";
cin.getline(player2,SIZE);

ClearScreen();
ShowTitle();
ShowPlayersNames(player1,player2);
PlayersLegends();
GameBoard;
Player1(player1,player2);
Player2(player1,player2);
Pause();

}

'void Pause()':
{
system("pause");
}

void ShowPlayersNames(char player1[50],char player2[50]);
{
cout<<setw(25)<<"Player 1"<<setw(15)<<"Vs."<<setw(18)<<"Player 2"<<endl;
cout<<right<<setw(23)<<player1<<right<<setw(29)<<player2<<endl;
cout<<"...................................."<<endl;

}

void ClearScreen();
{
system("cls");
}

void ShowTitle()
{
cout<<setw(45)<<"CHECKERS\n"<<endl;

}

void GameBoard();
{
const char ROW=8;
const char COLUMN=8;
char board[ROW][COLUMN];

board[0][0]=(char)15);
board[0][1]=' ';
board[0][2]=(char)15);
board[0][3]=' ';
board[0][4]=(char)15);
board[0][5]=' ';
board[0][6]=(char)15);
board[0][7]=' ';

board[1][0]=' ';
board[1][1]=(char)15);
board[1][2]=' ';
board[1][3]=(char)15);
board[1][4]=' ';
board[1][5]=(char)15);
board[1][6]=' ';
board[1][7]=(char)15);

board[2][0]=(char)15);
board[2][1]=' ';
board[2][2]=(char)15);
board[2][3]=' ';
board[2][4]=(char)15);
board[2][5]=' ';
board[2][6](char)15);
board[2][7]=' ';

board[3][0]=' ';
board[3][1]=' ';
board[3][2]=' ';
board[3][3]=' ';
board[3][4]=' ';
board[3][5]=' ';
board[3][6]=' ';
board[3][7]=' ';


board[4][0]=' ';
board[4][1]=' ';
board[4][2]=' ';
board[4][3]=' ';
board[4][4]=' ';
board[4][5]=' ';
board[4][6]=' ';
board[4][7]=' ';

board[5][0]=' ';
board[5][1]=(char)79;
board[5][2]=' ';
board[5][3]=(char)79;
board[5][4]=' ';
board[5][5]=(char)79;
board[5][6]=' ';
board[5][7]=(char)79;

board[6][0]=(char)79;
board[6][1]=' ';
board[6][2]=(char)79;
board[6][3]=' ';
board[6][4]=(char)79;
board[6][5]=' ';
board[6][6]=(char)79;
board[6][7]=' ';

board[7][0]=' ';
board[7][1]=(char)79;
board[7][2]=' ';
board[7][3]=(char)79;
board[7][4]=' ';
board[7][5]=(char)79;
board[7][6]=' ';
board[7][7]=(char)79;

cout<<setw(44)<<"Column\n\n"<<endl;
cout<<setw(60)<<" 1 2 3 4 5 6 7 8 "<<endl;
cout<<setw(60)<<"|....|....|....|....|....|....|....|....|"<<endl;
cout<<setw(17)<<"1"<<"|"<<board[0][0]<<"|"<<board[0][1]<<"|"<<board[0][2]<<"|"<<board[0][3]<<"|"<<board[0][4]<<"|"<<board[0][5]<<"|"<<board[0][6]<<"|"<<board[0][7]<<"|"<<endl;
cout<<setw(59)<<"| | | | | | | | |"<<endl;
cout<<setw(60)<<"|....|....|....|....|....|....|....|....|"<<endl;
cout<<setw(17)<<"2"<<"|"<<board[1][0]<<"|"<<board[1][1]<<"|"<<board[1][2]<<"|"<<board[1][3]<<"|"<<board[1][4]<<"|"<<board[1][5]<<"|"<<board[1][6]<<"|"<<board[1][7]<<"|"<<endl;
cout<<setw(59)<<"| | | | | | | | |"<<endl;
cout<<setw(60)<<"|....|....|....|....|....|....|....|....|"<<endl;
cout<<setw(16)<<"R"<<"3"<<"|"<<board[2][0]<<"|"<<board[2][1]<<"|"<<board[2][2]<<"|"<<board[2][3]<<"|"<<board[2][4]<<"|"<<board[2][5]<<"|"<<board[2][6]<<"|"<<board[2][7]<<"|"<<endl;
cout<<setw(17)<<"O"<<"| | | | | | | | |"<<endl;
cout<<setw(15)<<"W"<<"|....|....|....|....|....|....|....|....|"<<endl;
cout<<setw(16)<<"S"<<"4"<<"|"<<board[3][0]<<"|"<<board[3][1]<<"|"<<board[3][2]<<"|"<<board[3][3]<<"|"<<board[3][4]<<"|"<<board[3][5]<<"|"<<board[3][6]<<"|"<<board[3][7]<<"|"<<endl;
cout<<setw(59)<<"| | | | | | | | |"<<endl;
cout<<setw(60)<<"|....|....|....|....|....|....|....|....|"<<endl;
cout<<setw(17)<<"5"<<"|"<<<board[4][0]<<"|"<<board[4][1]<<"|"<<board[4][2]<<"|"<<board[4][3]<<"|"<<board[4][4]<<"|"<<board[4][5]<<"|"<<board[4][6]<<"|"<<board[4][7]<<"|"<<endl;
cout<<setw(59)<<"| | | | | | | | |"<<endl;
cout<<setw(60)<<"|....|....|....|....|....|....|....|....|"<<endl;
cout<<setw(17)<<"6"<<"| | | | | | | | |"<<endl;
cout<<setw(20)<<"|"<<board[5][0]<<"|"<<board[5][1]<<"|"<<board[5][2]<<"|"<<board[5][3]<<"|"<<board[5][4]<<"|"<<board[5][5]<<"|"<<board[5][6]<<"|"<<board[5][7]<<"|"<<endl;
cout<<setw(60)<<"|....|....|....|....|....|....|....|....|"<<endl;
cout<<setw(17)<<"7"<<"| | | | | | | | |"<<endl;
cout<<setw(20)<<"|"<<board[6][0]<<"|"<<board[6][1]<<"|"<<board[6][2]<<"|"<<board[6][3]<<"|"<<board[6][4]<<"|"<<board[6][5]<<"|"<<board[6][6]<<"|"<<board[6][7]<<"|"<<endl;
cout<<setw(60)<<"|....|....|....|....|....|....|....|....|"<<endl;
cout<<setw(17)<<"8"<<"| | | | | | | | |"<<endl;
cout<<setw(19)<<"|"<<board[7][0]<<"|"<<board[7][1]<<"|"<<board[7][2]<<"|"<<board[7][3]<<"|"<<board[7][4]<<"|"<<board[7][5]<<"|"<<board[7][6]<<"|"<<board[7][7]<<"|"<<endl;
cout<<setw(60)<<"|....|....|....|....|....|....|....|....|"<<endl;

}
void PlayersLegends()
{
cout<<"Legend"<<endl;
cout<<".........."<<endl;
cout<<"Player 1="<<(char)79<<endl;
cout<<" "<<endl;
cout<<"Player 2="<<(char)153<<endl;
cout<<"......................................................................................................................................................"<<endl;

}
void Player1(char player1[50],char player2[50]);
{
double row,column;
double OriginalRows,OriginalColumns;

cout<<"Player 1 Turn:"<<player1<<endl;
cout<<"Row:";
cin>>row;

}

void Player2(char player1[50],char player2[50])
{
double row2,column2;
double OriginalRows2,OriginalColumns2;

cout<<"Player 2 Turn:"<<player2<<endl;
cout<<"Row:";
cin>>row2;


}
You didn't need to make a post on the beginner subforum and the General C++ subforum, just here would of been fine... Also in future use [code] tags to make the code easier for people to read on the forum.

I see quite a few things wrong...

First of all you don't need a ; on the functions themselves such as void ClearScreen(); and void ClearScreen(); etc.

None of these lines need the final ) after them (as it isn't matched up to anything)
1
2
3
4
5
6
7
8
board[1][0]=' ';
board[1][1]=(char)15);
board[1][2]=' ';
board[1][3]=(char)15);
board[1][4]=' ';
board[1][5]=(char)15);
board[1][6]=' ';
board[1][7]=(char)15);


On line 44 GameBoard has no function call added to it, so it will not work correctly. Change it to GameBoard().

Your void Pause() function at line 51 shouldn't have singular quotes around it and there is no need to have a colon after it.

There is an extra "<" on line 169 that you need to delete (3rd one across)
cout<<setw(17)<<"5"<<"|"<<<board[4][0]<<"|"<<board[4][1]<<"|"<<board[4][2]<<"|"<<board[4][3]<<"|"<<board[4][4]<<"|"<<board[4][5]<<"|"<<board[4][6]<<"|"<<board[4][7]<<"|"<<endl;

On line 105 you are missing an = sign
board[2][6](char)15;

As far as I know everything else should work correctly.
Topic archived. No new replies allowed.