摘要: #!/usr/bin/ruby -w# -*- coding: UTF-8 -*-for i in 1..5 print i," "endprint "\n"for i in 1...5 print i," "end##1 2 3 4 5 #1 2 3 4 # 阅读全文
posted @ 2017-04-20 16:09 sky20080101 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 关机计算机:shutdown.exe -s -t 00重启计算机:shutdown.exe -r -t 00注销计算机:shutdown.exe -l -t 00锁定计算机:rundll32.exe user32.dll,LockWorkStation休眠计算机:rundll32.exe powrP 阅读全文
posted @ 2017-04-19 18:10 sky20080101 阅读(158) 评论(0) 推荐(0) 编辑
摘要: { class clsA { private int _i; public int I { set { _i = value; } get { return _i; } } } struct strctB { private... 阅读全文
posted @ 2017-04-19 09:05 sky20080101 阅读(162) 评论(0) 推荐(0) 编辑
摘要: { class clsA { private int _i; public int I { set { _i = value; } get { return _i; } } } struct strctB { private... 阅读全文
posted @ 2017-04-18 14:35 sky20080101 阅读(141) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { int i = 2,j = 2; bool a = Object.Equals(i, j); bool b = Object.ReferenceEquals(i, j); ... 阅读全文
posted @ 2017-04-17 08:56 sky20080101 阅读(195) 评论(0) 推荐(0) 编辑
摘要: private static int CalcIntegerLength(int iLen) { //String str_iLen = Convert.ToString(iLen); int strLen = 0;// str_iLen.Length; do { ... 阅读全文
posted @ 2017-04-17 00:08 sky20080101 阅读(263) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace ReadIniTest { class Class1 { [DllImport("kernel3... 阅读全文
posted @ 2017-04-03 10:24 sky20080101 阅读(144) 评论(0) 推荐(0) 编辑
摘要: // mapTest.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include using namespace std; int main(int argc, char* argv[]) { map test; ... 阅读全文
posted @ 2017-03-29 17:24 sky20080101 阅读(249) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { bool b = true; int i = 0; if (b || (++i>0)) { } Conso... 阅读全文
posted @ 2017-03-23 09:59 sky20080101 阅读(129) 评论(0) 推荐(0) 编辑
摘要: internal string GetClassInfo(string assemblyName, string className, string strField) { string ret = strField; if (!String.IsNullOrEmpty(assemblyName) && !Strin... 阅读全文
posted @ 2017-03-22 17:03 sky20080101 阅读(138) 评论(0) 推荐(0) 编辑