Before main i create a structure:
Then i create my vector of type structure:Code:struct numberinfo { int number; int AoN; };
And when i do things like this:Code:vector <numberinfo> Numinfo;
Numinfo.AoN.push_back(amount);
It says:
52 C:\CODE\CS192.cpp 'class std::vector<numberinfo, std::allocator<numberinfo> >' has no member named 'number'
i have no idea why it is doing this can some one help