#include <stdio.h> int main() { char str_ip[32] = {0}; int int_ip = 0; int ip[4] = {0}; gets(str_ip); scanf("%d", &int_ip); sscanf(str_ip, "%d.%d.%d.%d", &ip[3], &ip[2], &ip[1], &ip[0]); //注意取值范围 unsigned long str_int = ip[0]*1 + ip...