前两周公司网络架构大翻修,忙得不可开交,在修改打印服务器的IP时,遇到两个很刁钻的问题,一开始先是不让我改,后来改好后,变成只要闲置一段时间,He will disconnect,Tried all day,Finally gave up,Just grabbed a small program,Put it on the server to ping the print server every 30 seconds。
後來就想嘗試寫出類似功能的程式,沒想到還真讓我給拼裝出來了,也就是今天要交的作業~Ping Tool
程式碼:
略
執行結果:
主畫面

按下"倒數計時"鈕後,出現輸入時間的視窗

開始倒數計時

數到0時,會出現ping的視窗,前面程式碼裡寫ping兩次為的就只是讓這視窗出現,如果只ping一次,The window appeared and then disappeared immediately,I didn't have time to see the content

Then it returned to the value I just entered and continued counting down

Thoughts:
This time the program's functionality is very ordinary,It's more on the practical side,After finishing writing it,感覺還不錯,Because from the first time I had the idea of wanting to learn programming,It was just hoping to be able to write tools I want to use myself,More than ten years later,Finally, there is a beginning。
It's rather unfortunate that,這次算是用拼湊的方式完成,也就是先出現想法,再上網找語法怎麼用,有些都用複製貼上,因此感覺不夠融會貫通。不過不斷try & error的過程多少還是有學到一些觀念,還是可接受啦~ 
Postscript:
不知道為什麼執行檔有夠大,11MB
,有空再來研究。








留下回复