摘要:
#!/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 # 阅读全文
摘要:
关机计算机:shutdown.exe -s -t 00重启计算机:shutdown.exe -r -t 00注销计算机:shutdown.exe -l -t 00锁定计算机:rundll32.exe user32.dll,LockWorkStation休眠计算机:rundll32.exe powrP 阅读全文
摘要:
{ class clsA { private int _i; public int I { set { _i = value; } get { return _i; } } } struct strctB { private... 阅读全文
摘要:
{ class clsA { private int _i; public int I { set { _i = value; } get { return _i; } } } struct strctB { private... 阅读全文
摘要:
class Program { static void Main(string[] args) { int i = 2,j = 2; bool a = Object.Equals(i, j); bool b = Object.ReferenceEquals(i, j); ... 阅读全文
摘要:
private static int CalcIntegerLength(int iLen) { //String str_iLen = Convert.ToString(iLen); int strLen = 0;// str_iLen.Length; do { ... 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace ReadIniTest { class Class1 { [DllImport("kernel3... 阅读全文
摘要:
// 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; ... 阅读全文
摘要:
class Program { static void Main(string[] args) { bool b = true; int i = 0; if (b || (++i>0)) { } Conso... 阅读全文
摘要:
internal string GetClassInfo(string assemblyName, string className, string strField) { string ret = strField; if (!String.IsNullOrEmpty(assemblyName) && !Strin... 阅读全文