码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
写Java程序让Jvm崩溃
package jvm;public class HeapCrash { public static void main(String[] args) { //Object[] o = {“abc”};初始值赋值,不会有影响。 Object[] o ...
分类:编程语言   时间:2014-06-18 22:36:27    阅读次数:455
[LeetCode] Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:其他好文   时间:2014-06-18 22:11:44    阅读次数:200
Httpclient httpdelete 参数
Httpclient 中常用的请求有2个,HttpPost 和 HttpGet,今天在对某个网站进行分析的时候,突然发现用到了 HttpDelete,并且传参 是 Json。1、一般 HttpPost 对传参 Json 的处理是:// 中文处理StringEntity se = new String...
分类:其他好文   时间:2014-06-18 22:05:55    阅读次数:419
quick cocos2dx 滚动条
--滚动条 labar local function valueChanged(strEventName,pSender) if nil == pSender then return end ...
分类:其他好文   时间:2014-06-18 22:00:01    阅读次数:332
leetcode--Valid Number
Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:其他好文   时间:2014-06-18 21:58:07    阅读次数:220
ASP.NET C# 去掉字符串中间空格方法
string strName = "大 张 伟"; string str = Regex.Replace(strName, @"\s", ""); Response.Write("输出内容:" + str);
分类:Web程序   时间:2014-06-18 21:18:50    阅读次数:215
java 输出流
//输出流 @Test public void testOutStream() throws Exception{ OutputStream out =new FileOutputStream("abc.txt"); String content="hello word/nwww.baidu.c.....
分类:编程语言   时间:2014-06-18 21:16:47    阅读次数:280
24点经典算法
1、概述 给定4个整数,当中每一个数字仅仅能使用一次;随意使用 + - * / ( ) ,构造出一个表达式,使得终于结果为24,这就是常见的算24点的游戏。这方面的程序非常多,一般都是穷举求解。本文介绍一种典型的算24点的程序算法,并给出两个详细的算24点的程序:一个是面向过程的C实现,一个是面向....
分类:其他好文   时间:2014-06-18 21:16:08    阅读次数:168
父类提供业务逻辑,子类做具体实现
publicclassTest { publicstaticvoidmain(String[]args)throwsException{ Childrenc=newChildren(); c.show(); } } classParent { publicvoidshow(){ stepOne(); stepTwo(); } voidstepOne(){ System.out.println("parent.stepOne()"); } voidstepTwo(){ /..
分类:其他好文   时间:2014-06-16 15:12:59    阅读次数:178
Effective C++:条款20:宁以 pass-by-reference-to-const替换pass-by-value
(一) 调用函数的时候如果传递参数pass-by-value,那么函数参数都是以实际实参的副本为初值,调用端所获得的亦是函数返回值的一个复件。 看下面代码: class Person { public: Person(); virtual ~Person(); private: string name; string address; }; ...
分类:编程语言   时间:2014-06-16 14:57:30    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!