04 2015 档案
摘要:递归调用就是函数自己调用自己。下面例子从函数执行控制角度分析递归的执行顺序:using System;namespace Demo{ class Program { static void Main(string[] args) { In...
阅读全文
摘要:1、error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.在工程的stdafx.h中,改为如下配置:...
阅读全文
摘要:我们知道参数类型可以是整型、字符型、对象类型等等,当然也可以是函数。整型用int修饰,字符型用string修饰,等等。那么参数为函数,用什么修饰?就是“委托”。因此,可以把委托理解为函数的类型。using System;using System.Collections.Generic;using S...
阅读全文
摘要:执行powershell脚本有两种方式:1、通过命令行参数启动脚本C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -version 2.0 -noexit -command ". 'C:\Users\Administrator\De...
阅读全文