码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
UVa 10935 - Throwing cards away I
模拟队列操作。  注意当n == 1时第一行输出末尾没有空格。PE一次~~~ 代码  : import java.util.*; public class Main10935 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Queue q = new Linked...
分类:Windows程序   时间:2014-12-26 23:05:58    阅读次数:472
数据处理json格式以及java编写注意事项
我们先来学习下JSON定义: (1).JSON是一种轻量级的数据交换格式 (2).JSON基于两种数据结构:Object和Array。其中Object是“名称/值”对的集合。 (3).对象:大括号,每一组string-value结合以","分隔,string和value以冒号分隔。 JSON数据格式,在Android中被广泛运用于客户端和网络(或者说服务器)通信,非常有必要系统的了...
分类:编程语言   时间:2014-12-26 23:04:34    阅读次数:343
[LeetCode]Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB Credits...
分类:其他好文   时间:2014-12-26 23:00:19    阅读次数:145
Android客户端单线程下载
具体效果如上图所示,具体操作步骤如:1、先新建一个工程名为getDataInternet的应用;2、修改res/values中的string.xml文件,具体代码如下: 1 2 3 4 Android客户端单线程下载 5 Hello world! 6 Settings ...
分类:移动开发   时间:2014-12-26 22:51:32    阅读次数:235
ACdreamOJ 1116 斐波那契数列+hash计算后缀
http://acdream.info/problem?pid=1116 Problem Description give you a string, please output the result of the following function mod 1000000007 n is the length of the string f() is the funct...
分类:其他好文   时间:2014-12-26 21:44:24    阅读次数:218
Gradle Goodness: Using and Working with Gradle Version
To get the current Gradle version we can use the gradleVersion property of the Gradle object. This returns a string value we can use for displaying th...
分类:其他好文   时间:2014-12-26 21:33:39    阅读次数:207
小心使用临时string对象的c_str()值
在这篇链接http://blog.csdn.net/while0/article/details/26291855? 里看到这样的代码 const?char*?file_path?=?FileUtils::getInstance()->fullPathForFilename("hello.json").c_str(); log("external?fil...
分类:其他好文   时间:2014-12-26 20:26:44    阅读次数:191
苏坤winform开发第16讲笔记(身份证校验)
效果: C#语法整型转字符串 C#转换有如下方法: 1. int num = Convert.ToInt32(字符串); string str= Convert.ToString(数字); (没有必要,不要用这种方法) 2.intnum = (int)字符串; string str = (string)数字; 3.就是你自己写的方法! inti=01232456...
分类:Windows程序   时间:2014-12-26 20:23:54    阅读次数:408
leetcode:Decode Ways
一、     题目 给定一个字符串包含26个字母,字母与数字产生映射,如: ‘A’  --> 1 ‘B’  --> 2 … ‘Z’ --> 26 如果给一串数字,请给出编码的方式有多少?   *注意:’12’ 可以编码成”AB”,也可以编码成”L”. 二、     分析 可以看出题目的目的是考察动态规划,即每走一步可能有两种情况,是不是和爬台阶很像呢?对的。 这道题思路有两种但...
分类:其他好文   时间:2014-12-26 20:23:15    阅读次数:170
Cracking the coding interview汇总目录
很久之前刷的CTCI的题目,都快忘记了,做个分类汇总,再重新好好复习一遍。 Chapter 1 | Arrays and Strings 1.1 Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data stru...
分类:其他好文   时间:2014-12-26 20:20:00    阅读次数:452
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!