Storing A Username and IP address in an array
I am working on a chat program, and have the UDP server set up, but I need a way (unlike mine) that can store, retrieve, and delete usernames and IP addresses from an array. The array is named
IPList
and has the dimensions
(1 to 2, 1 to 100000)
1 is the Username, 2 is the IP address.
My current way can store one username, but has a problem with the second one. It seems to erase both of them. If you could give me a new algorithm, I would really appreciate it.
And then, with BSChat working, I shall take over the world...er...not.
-brian728s
[email protected]