如何创建程序? [英] How to create a program?

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

问题描述

我想要一个执行ping测试的程序并在reasult上添加+10 ...



ex来自<地址>的回复:bytes = 32 time = 72ms TTL = 116我想显示82而不是72 ..



我尝试过:



i没有这方面的知识。

I want a program that do ping test and adds +10 on the reasult...

ex Reply from <Address>: bytes=32 time=72ms TTL=116 i want to show 82 instead of 72..

What I have tried:

i don't have the knowledge to do it.

推荐答案

引用:

我没有这方面的知识......

i don't have the knowledge to do it...



那么这是一个很好的机会让你学习一些东西 - 而且每当你学习的时候新事物并不是完全浪费!



从任何项目开始的方式:定义你想要达到的目标(规范,你已经做了很多。)

将规范转换为设计。这很复杂,因为它意味着研究,比较,并研究如何实现事物。理查德已经建议了一种方法,但如果你习惯使用.NET语言,那么就有 Ping类(System.Net.NetworkInformation) [ ^ ]你可能会发现它很有用。

然后使用设计开始编写应用程序代码的文件。

测试应用程序,并返回到适当的阶段,直到通过所有测试。


Then this is an excellent opportunity for you to learn something - and any day when you learn something new has not been a complete waste!

Start the way you start with any project: define what you want to achieve (the specification, you've pretty much done that).
Convert the specification into a design. This is complicated, because it means research, and comparisons, and working out how to implement things. Richard has already suggested one way to start, but if you are used to a .NET language then there is the Ping Class (System.Net.NetworkInformation)[^] which you might find useful.
Then use the design documents to start coding the app.
Test the app, and return to the appropriate stage(s) until it passes all tests.


这篇关于如何创建程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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