//输出 Console.WriteLine("这是一行文字"); 自动回车的Congsole.Write(""); 不自动回车注意: 1、大小写敏感。(快捷键操作)2、括号,引号,分号都是英文状态下的符号。3.结尾不要忘记写分号。//输入string s = Console.ReadLine()....
分类:
其他好文 时间:
2014-12-21 23:39:06
阅读次数:
255
C#.一、数据类型 1,字符串类型(string) 。放入一串字符串,需要用""引起来。 列如: string a ="999"; 2,整型 (int)。 4字节 不常用的整型 long 8字节、short 2字节 、 tiny 1字节例如 : int a = 10; 3,小数型 又称 浮点型 (f...
public static void main(String[] args) throws IOException { //System.out.println("Hello World!"); /** * 获取 */ Fil...
分类:
Web程序 时间:
2014-12-21 23:32:41
阅读次数:
232
String to Integer (atoi)Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, plea...
分类:
其他好文 时间:
2014-12-21 23:28:18
阅读次数:
224
The Swift Programming Language中的代码加上部分EXPERIMENTimport UIKitprotocol ExampleProtocol { var simpleDescription: String { get } mutating func adjus...
分类:
编程语言 时间:
2014-12-21 23:27:04
阅读次数:
209
//流方式下载 protected void Button4_Click(object sender, EventArgs e) { string fileName = "aaa.zip";//客户端保存的文件名 string filePath = Server.MapPath("DownL...
分类:
其他好文 时间:
2014-12-21 22:06:47
阅读次数:
226
//输出 Console.WriteLine("大哇塞");自动回车的。Console.Write("Hello world"); 不带回车的注意:1.大小写敏感。(快捷键操作)2.括号,引号,分号都是英文状态下的符号。3.结尾不要忘记写分号。//输入 string s = Console.Read...
1.三种常用的字符串判空串方法:Length法:boolisEmpty=(str.Length==0);Empty法:boolisEmpty=(str==String.Empty);General法:boolisEmpty=(str=="");2.深入内部机制:要探讨这三种方法的内部机制,我们得首....
分类:
其他好文 时间:
2014-12-21 21:56:38
阅读次数:
311
1 /// 2 /// 路径 3 /// 4 static string log = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase, string.F...
分类:
其他好文 时间:
2014-12-21 21:50:59
阅读次数:
176