1.分号;
1>Swift不要求每个语句后面跟一个分号作为语句结束的标识,如果加上也可以,看个人喜好 2>在一行中写了两句执行语句,需要用分号隔开,比如 let
x = 0; println("hehe")2.常量与变量的定义 1>常量名与变量名没有大小写的限制 2>常量关键字let 变量关...
分类:
其他好文 时间:
2014-06-16 07:25:28
阅读次数:
185
转自:http://blog.csdn.net/mailreboot/article/details/1946866 1 //结束进程 2 function
KillTask(ExeFileName: string): Integer; 3 const 4 PROCESS_TERMINATE = ....
分类:
其他好文 时间:
2014-06-16 07:11:11
阅读次数:
270
class Solution {private: const static char*
pattern[]; const static char* roman_digit[];public: string intToRoman(int num) {
if (num ...
分类:
其他好文 时间:
2014-06-16 07:04:22
阅读次数:
171
一、const作用二、const用法1、修饰一般常量
修饰符const可以用在类型说明符前,也可以用在类型说明符后。 例如: int const x=2; const int x=2; 2、修饰常数组
修饰符const可以用在类型说明符前,也可以用在类型说明符后例如: int cons...
分类:
其他好文 时间:
2014-06-16 06:27:06
阅读次数:
312
1.Tuples(元组)
元组是多个值组合而成的复合值。元组中的值可以是任意类型,而且每一个元素的类型可以是不同的。
1>定义:使用()包含所有元素,用逗号分开,也可以对每个元素做命名let http404Error = (404, "Not Found")let
http200Status =.....
分类:
其他好文 时间:
2014-06-16 00:14:17
阅读次数:
360
Set theTIdHTTP.HandleRedirectsproperty to True.
It is False by default.function FetchUrl(const url: string): string; var idhttp
: TIdHTTP; begin id...
分类:
其他好文 时间:
2014-06-12 14:53:09
阅读次数:
286
在MSVC中,_strdup(const char
*p)函数的作用是返回一个指针,这个指针指向p的一个复制串。#includeint main(){ char str[]="this is a string";
char *dstring=strdup(str); std::co...
分类:
其他好文 时间:
2014-06-12 14:26:37
阅读次数:
277
#include #include char *change(int val, int base,
char *retbuf){ static const char *str = "0123456789ABCDEF"; char *p; char
buf[15]; p = b...
分类:
编程语言 时间:
2014-06-12 10:09:57
阅读次数:
356