the purpose of this program is to take the players information and change it using structures but I am stuck and dont know how to fix the problems with it
#include <iostream>
#include <iomanip>
using namespace std;
//*************** Place your class description after this line ***************
class Player
{
public:
Player();
Player( const char [], int, int, int );
void printPlayer();
void setName(const char [] );
void setGoals( int );
void setAssists( int );
void setRating( int );
int getGoals();
int getAssists();
int getRating();
private:
char name[50];
int goals;
int assists;
int rating;
};
//**************************************************************************************
cout<<"Fifth Player Object"<<endl;
//cout only goals and plus minus?????????????????????????????????????????????????????????
player5.printPlayer();
cout<<endl<<endl;
//**************************************************************************************
cout<<"Sixth Player Object"<<endl;
player6.printPlayer();
cout<<endl;
player6.setAssists(-2);
player6.setAssists(4);
//player6. see out only assists??????????????????????????????????????????????????????????
player6.setRating(-4);
player6.printPlayer();
cout<<endl<<endl;
*/
//Test 2 -- constructor with arguments
// Setting Names, Goals, Assists and Rating
// getGoals, getAssists and getRating
//methods
Player::Player()
{
char setName('\0');
int setGoals = 0;
int setAssists = 0;
int setRatings = 0;
}
//******************************************************************************************************
Player::Player (const char[n], int g, int a, int r)
{
strcpy (playerName, char[n]);
setGoals(g);
setAssists(a);
setRatings(r);
}