码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Leetcode_Add Binary
class Solution { public: string addBinary(string a, string b) { string s; int lenA=a.size(); int lenB=b.size(); if(lenA==0) return b; if(lenB==0) return a; if(lenA>lenB) ...
分类:其他好文   时间:2015-02-09 23:12:28    阅读次数:167
Partial Word Searching
Write a method that will search an array of strings for all strings that contain another string, ignoring capitalization. Then return an array of the ...
分类:其他好文   时间:2015-02-09 23:03:22    阅读次数:246
unity3d的延时调用函数
1.Invoke(string methodName,float time)在一定时间调用methodName函数using UnityEngine;using System.Collections; public class example : MonoBehaviour { public ...
分类:编程语言   时间:2015-02-09 22:58:52    阅读次数:582
Delphi XE7 用indy开发微信公众平台(4)- 接收普通消息
接收普通消息type TMsgType = (event, text, image, voice, video, location, link); TMessage = Record ToUserName: String; FromUserName: String; Creat...
分类:微信   时间:2015-02-09 22:56:53    阅读次数:488
Delphi XE7 用indy开发微信公众平台(3)- 验证消息真实性
验证消息真实性uses IdHashSHA, IdGlobal;function SHA1(Input: String): String;begin with TIdHashSHA1.Create do try Result := LowerCase(HashBytesAsHex(...
分类:微信   时间:2015-02-09 22:49:29    阅读次数:3028
Delphi XE7 用indy开发微信公众平台(1)- 获取access_token、expires_in
获取access_token、expires_infunction GetMethod(HTTP: TIdHTTP; Url: String; Max: Integer): String;var RespData: TStringStream;begin RespData := TStringS.....
分类:微信   时间:2015-02-09 21:41:11    阅读次数:423
C#的post请求
public string Query(string queryString) { HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestURL); ...
分类:Windows程序   时间:2015-02-09 21:27:16    阅读次数:179
Hive基本命令整理
创建表: hive> CREATE TABLE pokes (foo INT, bar STRING);          Creates a table called pokes with two columns, the first being an integer and the other a string 创建一个新表,结构与其他一样 hive> create table n...
分类:其他好文   时间:2015-02-09 20:18:08    阅读次数:157
小方法
作用方法1格式,替换String.format(String format, Objec ... args);Returns a formatted string using the specified format string and arguments.
分类:其他好文   时间:2015-02-09 20:07:31    阅读次数:181
Effective java 第2版 - 笔记(01) 单例(Singleton)的枚举(enum)实现
直接上代码: 1 public enum Boss { 2 3 INSTANCE; 4 5 private String name; 6 7 public void doSomeThing() { 8 System.out.println(name + ...
分类:编程语言   时间:2015-02-09 19:53:16    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!