Hello,

No problem.

Here's the code I have till now :
Code:
#include <iostream>
#include <fstream>

using namespace std;
char home_team, away_team, game ;
int score_home , score_away;
map struct database {
String Team ;
int played_games, game_points, points_made, points_against
}

int Menu(){
int ret;
cout<<"1) Input game.: "<<endl;
<<"2) Making the rank.: "<<endl;
<<"3) Quit.: ";
cin>>ret;
return ret;
}

Input_games() {
cout << "Home team :"<<end1 ;
cin.getline (home_team, 30, '/n');
cout << "Away team :"<<end1;
cin.getline (away_team, 30, '/n');
cout << "Score home team :"<<end1;
cin.get (score_home) ;
cout << "Score Away team :"<<end1;
cin.get (score_away)
ofstream a_file ( "example.txt" );
game= home_team + away_team + score_home + score_away
a_file<< game;
a_file.close();
}

Ranking() {
char str[80];

ifstream b_file ( "example.txt" );
b_file>> str;


}


void main(){ // or int main() {
int rply;
rply=Menu();
switch (rply){
case 1:
  Input_games();
break;
case 2:
   Ranking();
break;
case 3:
break;
}
// return 0; if you have int main()
}

The question is how do i get the right values of str into the struct var ?

Roelof