码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Javascript的基本数据类型和判断
ECMAScript中有6种简单数据类型:Undefined,Null,Boolea,Number,String和Object,这些都是一些基本知识,有意思在后面 用javascript里的typeof检测一下这6个数据类型你会有新发现 “undefined” ---------- 如果值未定义 ....
分类:编程语言   时间:2014-05-15 10:54:52    阅读次数:365
string双向链表
写一个string双向链表模块,具有提取和插入功能。通过建立一个程序语言种类的表来练习这个模块。为这个表提供一个sort()函数。并提供一个函数反转表中字符串的顺序。环境:vs2005 win32控制台程序#include #include #include #include // for std....
分类:其他好文   时间:2014-05-15 10:45:47    阅读次数:342
try 返回前执行fianlly
try catch finally 语句中 如果try中有返回语句,如果在fianlly代码块中有对这个值修改的话,并不影响其放回值public class Test { public static void main(String[] string){ System.out.p...
分类:其他好文   时间:2014-05-15 10:38:40    阅读次数:209
leetcode第一刷_Letter Combinations of a Phone Number
水题。数字一共就9个,去掉1是用来显示标点的,剩下8个。 穷举一下map,然后有几个数字,就输出这几个数字的排列,是一个dfs嘛。 map num; void allCombinations(string &digits, int start, int len, string &pres, vector &res){ if(len == digits.length()){ ...
分类:其他好文   时间:2014-05-15 01:42:26    阅读次数:264
C中字符串常见操作
#include #include #include #include #include // #include int main(void){ char str1[]="This is the first string"; char str2[]="That is the other string"; // printf(strcpy(str1,str...
分类:其他好文   时间:2014-05-15 01:39:40    阅读次数:348
servlet 发送到客户端的数据编码设置
setCharacterEncoding void setCharacterEncoding(java.lang.String charset) Sets the character encoding (MIME charset) of the response being sent to the client, for example, to UTF-8. If the character...
分类:其他好文   时间:2014-05-15 01:36:58    阅读次数:233
C#语言和数据库技术基础复习
整理了下C#语言和数据库技术基础,作为复习资料第一章一、c#和JAVA对比:1.c#用命名空间(namespace)java用包(package)2.引入命名空间或包的关键字C#用using,JAVA用import3.程序入口:C#的Main()有四种形式staticvoidMain(string[]args)staticintMain(string[]args)staticvo..
分类:数据库   时间:2014-05-15 00:34:53    阅读次数:1595
javascript 常用的数组操作
join()Array.join(/*optional*/separator)将数组转换为字符串,可带一个参数separator(分隔符,默认为“,”)。与之相反的一个方法是:String.splict(),将字符串分隔成若干块来创建一个新的数组。reverse()Array.reverse(),颠倒数组元素的顺序,返回逆向的数组.注意此方法会修..
分类:编程语言   时间:2014-05-15 00:31:23    阅读次数:441
Leetcode 数 String to Integer (atoi)
1.注意规则 2.注意最小的负数的绝对值比最大的正数的绝对值大1,所以 line 13: (str[i] - '0') > INT_MAX%10不能取等号...
分类:其他好文   时间:2014-05-14 23:52:26    阅读次数:478
Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-05-14 23:11:14    阅读次数:398
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!