Trying to get my class to display numbers as well as characters

Hi Guys.

I have been having a problem with a new class im writing. I have managed to get the class to return a score which I want but I can't implement any characters. Meaning I want the programe to ask you to enter a team name and then the name gets stored in the class but for some reason i cant do it. I have been trying for over a week with no joy.

#include <iostream>
//#include "stdafx.h"
using namespace std;

class cteams
{
private:
static const char f_team1 = 10, f_team2 = 10, f_team3 = 10,f_team4 = 10;
int f_points_for_team1, f_points_for_team2, f_points_for_team3, f_points_for_team4;
public:
cteams (int,char);

static const int points_for_team1 = 0;
static const int points_for_team2 = 0;
static const int points_for_team3 = 0;
static const int points_for_team4 = 0;
static const char name_team1 = 20;

//int set_team1_score (){return (0);}
//int set_team2_score (){return (0);}
//int set_team3_score (){return (0);}
//int set_team4_score (){return (0);}

};

//class cleague
//{};


cteams::cteams (int,char)
{
//f_points_for_team1 = TheScore;
//f_points_for_team2 = TheScore;
//f_points_for_team3 = TheScore;
//f_points_for_team4 = TheScore;
}


int main()
{
cteams team1 (0,0);
cteams team2 (0,0);
cteams team3 (0,0);
//cteams team4 (0);

cout << "Please enter the name of team 1. ";
cin >> team3;
cout << "Team 1 Begins with " << team1.points_for_team1 << " Team 2 Begins with " << team2.points_for_team2 << endl;

system ("pause");
}

Hope you guys could shed any light on where I'm perhaps going wrong?

thanks
Topic archived. No new replies allowed.