hello,
I try to define a map of structs.
What I have is this :
I see now this message :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; }
C:\Users\wobben\Desktop\toernooi\test\main.cpp|14| error: template argument for 'template<class _T1, class _T2> struct std:air' uses local type 'main()::teamstats'|
Can someone explain what went wrong here ?
Roelof