Hello all-
Basically, I have a bunch of static IP addresses. I have an array filled with the last 3 digits of each address (the first 9 numbers are all the same of the address), and I am going to compare that array to another array filled with the numbers 1 -- 255. (Eventually, I hope to store the IP's being used in a text file rather than an array.) Anyways, those two arrays are compared and the IP's not already in the original array will be put into a new one.
I know, this is confusing, but please look at the code, its
alot simpler.
Everything compiles, and it is almost running correctly, but not quite. When I print out arrey_New (the array which holds the addresses NOT in use), it seems to print out a duplicate of array_Sample (containing 1 -- 255). Here is what my output looks like:
The outputted number of addresses in use (37) is correct, but the addresses available is waaay to high, it should be 255-37 (=218).
Does anyone have any suggestions? Thanks!