Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to judge whether an ip address is legal c++
How to judge whether an ip address is legal c++
According to the rules of ip address mm, nn, xx, yy, respectively, take out mm, nn, xx, YY, first judge whether they are all numbers, and then convert them into integers to judge their value range, so as to determine whether the ip address is legal.

Please accept the answer, my friend. Your adoption is my motivation. If you don't understand, please ask. Thank you.