problem defening a map of structs
hello,
I try to define a map of structs.
What I have is this :
Code:
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
struct teamstats {
string team_name;
int played_games, point_made, points_against;
}
map<string, struct teamstats> allteams;
}
I see now this message :
C:\Users\wobben\Desktop\toernooi\test\main.cpp|14| error: template argument for 'template<class _T1, class _T2> struct std::pair' uses local type 'main()::teamstats'|
Can someone explain what went wrong here ?
Roelof