excuse me ! help me please! how can i make the program say that if i created an account
ex.
name:aspic
pass:plusplus
and create another with the same name and pass!
how can i make the program say that that account/user is already created!
If the number of names you would be storing won't be massively long say over 1000, then you can use a simple linked list data structure or array to hold the names. Otherwise consider using a self balancing tree data structure or last but not least hashtable.
class linkedlist : public std::set<std::string> {};
A bad idea.
1) It is not a linked list. Do not confuse those who will read your code.
2) Public inheritance only to create an alias? Really? And you use typedef on the next line...
Use: using nameContainer = std::set<std::string>; or typedef if you still do not use C++11
Another idea is to use C++11's unordered_map. It allows for a key (being the name) as well as the value (or password) to be stored. It does not allow multiple of the same key, but it DOES allow multiple keys having the same value, so people don't get confused when they can't use an account due to the password being the same.\