I want to write a program to keep usernames and passwords on a dynamic 2 dimensional array. but I don't know how can I do this?
can you help me? and also my boss force me not to use structures.
I want to write a program to keep usernames and passwords on a dynamic 2 dimensional array. but I don't know how can I do this?
can you help me? and also my boss force me not to use structures.
To keep usernames and passwords it is a bad idea to use a 2d array unless the number of users is small.
You need to keep them either in a trie or a hash table.
If you do not need to remove users then you can also use bloom filters for some operations (combined with some of previous methods).