This c++ code finds number of subnets, first address in the block, last address in the block, number of addresses in the block.
Input - block of ipv4 addresses and netmask(Host)
Output - number of subnets, first address in the block, last address in the block, number of addresses in the block