using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Windows.Forms; namespace YL.Code { public class util { [DllImport("user32.dll", EntryPoint =
数组 数组是值类型,因此改变副本的值,不会影响到本身 数组的定义:var 变量名 [元素数量] T 变量名(符合标识符要求即可) 元素数量(整型,可以是const中的值) T(可以是任意基本类型,包括数组本身,当类型为数组时,可以实现多维数组) var a [5]int 和 var a [10]int 是不同的类型 定义一个字符串数组,然后赋值: var team [3]string team[0] = "hammer" team[1] = "soldier" te
Imports System.TextImports System.Runtime.InteropServices Public Class Form1 ' 相关API函数声明,注释掉的这里没用到,但是也比较常用吧,这些函数的功能都能搜到. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpW