0 Members and 3 Guests are viewing this topic.
-std=c++0x11
list<Player> p;//Fill p with Playersfor (int i = 0; i < p.size(); i++){ cout << p[i].name;}//Orfor (auto i = p.begin(); i < p.end(); i++)//Auto just makes declaration SO much easier{ cout << *i.name;}//Without Autofor (list<Player>::iterator i = p.begin(); i < p.end(); i++){ cout << *i.name;}