string是比特殊的类,说引用类型,但不存在堆里面,而且String str=new String("HelloWorld")这样的重装也说没有的。我们先来看一个方法 class Program { static void Main(string[] args) ...
分类:
其他好文 时间:
2014-07-31 20:15:57
阅读次数:
192
$.ajax({ url: 'http://127.0.0.1/work/open.json', success: function(data) { var ob = data; if (typeof(data) == 'str...
分类:
Web程序 时间:
2014-07-31 20:09:27
阅读次数:
594
http://blog.csdn.net/caoxiaohong/article/details/1781777JSP/JDBC MySQL乱码问题JSP的request 默认为ISO8859_1,所以在处理中文的时候,要显示中文的话,必须转成GBK的,如下String str=new String...
分类:
Web程序 时间:
2014-07-31 19:51:37
阅读次数:
395
1. c++中string到int的转换1) 在C标准库里面,使用atoi:#include #include std::string text = "152"; int number = std::atoi( text.c_str() ); if (errno == ERANGE) //可能是s....
分类:
编程语言 时间:
2014-07-31 19:48:27
阅读次数:
294
var str = '2008-10-09 21:35:28';//PHP中对应的UNIX时间戳为1223559328var new_str = str.replace(/:/g,'-');new_str = new_str.replace(/ /g,'-');var arr = new_str.s...
分类:
Web程序 时间:
2014-07-31 19:35:27
阅读次数:
152
学了这么久,才发现原来还有好多基础知识根本不会...标准类型:整型 int 布尔型 bool 长整型 long 浮点型 float 复数型 complex 字符串 str 列表 list元组 tuple 字典 dict 其他内建类型:类型对象的类型 typeNone NoneType文件 file函...
分类:
编程语言 时间:
2014-07-31 16:34:46
阅读次数:
274
1.直接在构造String时建立。 char data[] = {'s', 'g', 'k'}; String str = new String(data); 2.String有方法可以直接转换。 String.valueOf(char[] chr)就可以。 如: char[] cha = {'s'...
分类:
编程语言 时间:
2014-07-31 16:23:46
阅读次数:
317
#include #include #include #define MAX 27typedef struct node{ int v; struct node *next[MAX];}Trie;Trie *root;void creatTrie(char *str){ int i...
分类:
其他好文 时间:
2014-07-31 16:23:26
阅读次数:
212
function setClipBoard(str) Set WshShell = CreateObject("WScript.Shell") Set oExec = WshShell.Exec("clip") Set oIn = oExec.stdIn oIn.WriteL...
分类:
其他好文 时间:
2014-07-31 16:11:36
阅读次数:
216
#include #include int main(){char c,str[1000][1000],flag = 0,count; int x,y,i,j;while(1) { x = 0; y = 0;while((c = getchar() )!= '\n'){if (c == '#'){f...
分类:
其他好文 时间:
2014-07-31 12:41:36
阅读次数:
246