|
|
вернуться в форумThe only possible difficulty. To read IP address /subnet mask I recommend you to use the following template unsigned int read_mask(){ unsigned int a, b, c, d; scanf("%u.%u.%u.%u", &a, &b, &c, &d); return (a<<24) + (b<<16) + (c<<8) + d; } |
|
|