Thanks guys.
I'm still quite confused >_<
I went ahead and looked up
std::list at
Cprogramming.com - STL Tutorial - List Container
I copied and pasted the last portion:
Code:
std::list<int> int_list;
int_list.push_back(1);
int_list.push_back(1);
int_list.push_back(8);
int_list.push_back(9);
int_list.push_back(7);
int_list.push_back(8);
int_list.push_back(2);
int_list.push_back(3);
int_list.push_back(3);
int_list.sort();
int_list.unique();
for(std::list<int>::iterator list_iter = int_list.begin();
list_iter != int_list.end(); list_iter++)
{
std::cout<<list_iter<<endl;
}
I have the same error as before (which is strange since I thought this would be a working model).
I don't know all the terms being used in your answers.
If it doesn't bother you guys, could you post the simplest sample code that would reflect the behaviour of defining a list/set/array and inserting elements to it?
I understand that those datatypes slightly differ, but I'll look into those right now.
I'm taking notes as I go, but things are a bit confusing still.
Thanks for all your help. Much appreciated!