程序来检查IP地址 [英] program to check IP address

查看:91
本文介绍了程序来检查IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建程序以检查我们是否具有有效的IP地址(有效的IP地址由4个数字组成,每个数字在0到255之间)。创建四个文本框(您输入每个数字)和一个按钮。当你点击按钮时,它会告诉你我们是否有一个有效的IP(同样,当用户没有在文本框中输入数字时给出消息)

Create a program to check if we have a valid IP Address (a valid IP address is composed of 4 numbers, each is between 0 and 255). Create four textboxes (where you enter each of the numbers) and a button. When you click on the button, it will tell you whether we have a valid IP or not (also, give message when user doesn''t enter a number in a textbox)

推荐答案

1)不要大喊大叫。使用所有大写字母被认为是在互联网上大喊大叫,粗鲁(使用所有小写字母被认为是幼稚的)。如果你想被认真对待,请使用适当的大写字母。

2)帮助!帮助帮助!! neeeeeeeeeeeed help !!这不是一个好主题 - 它没有告诉我们你的问题(除了你的成熟度)。

3)不要以不同的形式发布相同的问题 - 我们阅读并记住和notcie这些东西。

4)我们不做你的功课:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!
1) DON''T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
2) "HELP! HELP HELP!! neeeeeeeeeeeed help!!" is not a good subject - it tells us nothing about your problem (except your lack of maturity).
3) Don''t post the same question under different guises - we cna read and remember and notcie these things.
4) We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!


在这个帖子中,他们会验证一个ip地址,



http://vbcity.com/forums/t/64595.aspx [ ^ ]



不确定你需要什么,当用户按下您的按钮时,调用您创建的函数进行验证,并使该函数返回true或false,并显示您希望用户看到的消息。
In this thread they go over validating an ip address,

http://vbcity.com/forums/t/64595.aspx[^]

No sure what you will need from there, when the user press your button call the function you create to validate and have that function return true or false and display the message you want the user to see.


这篇关于程序来检查IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆