自定义了一个日期差函数。用法见附件。 Function timediff(x As Date, y As Date, Optional z As String) As String Dim i As Integer, k As Integer, xx As Date, yy As Date, n As Long, s As String, d(1 To 3) As Long, d0(1 To 2) As Long If x > y Then xx y yy x …
1、利用原始Socket套接字,实现ICMP协议。 using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; namespace PingC { class ping { const int SOCKET_ERROR -1; const int IC…