码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
进制转换小算法
public static void main(String[] args) { System.out.println(Integer.toBinaryString(60)); System.out.println(Integer.toHexString(60));}
分类:编程语言   时间:2015-01-23 20:02:17    阅读次数:191
H.264码流格式
H.264码流格式 SODB: String Of Data Bits 原始数据比特流, 熵编码输出结果, 以bit为单位。 RBSP: Raw Byte Sequence Payload 原始字节序列负载, 在SODB最后加上trailing bits. EBSP: Extent Byte Sequence Payload 扩展字节序列负载, RBSP里面加入防伪起始码字节(0x03)...
分类:其他好文   时间:2015-01-23 18:26:44    阅读次数:218
C++ string,删除字符串中的首尾空格
直接上代码: void EraseSpace(string &s) { //ch可换成其他字符 const char ch = ' '; s.erase(s.find_last_not_of(" ") + 1); s.erase(0, s.find_first_not_of(" ")); } 够简单吧,亏我以前还一个字符一个字符地数空...
分类:编程语言   时间:2015-01-23 18:25:12    阅读次数:186
Think in Java(五):多态
1. 动态绑定 又称"后期绑定"或"运行时绑定",它的含义就是在运行时判断对象的类型,从而调用恰当的方法 public class Shapes { private static RandomShapeGenerator gen = new RandomShapeGenerator(); public static void main(String[] args) { Shape[]...
分类:编程语言   时间:2015-01-23 18:22:30    阅读次数:229
[LeetCode] Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-01-23 18:12:03    阅读次数:171
LeetCode - Fraction to Recurring Decimal
Fraction to Recurring Decimal2015.1.23 15:59Given two integers representing the numerator and denominator of a fraction, return the fraction in string...
分类:其他好文   时间:2015-01-23 18:11:59    阅读次数:318
java实现观察者模式
最近使用java实现了设计模式中的观察者模式,源码如下: package cn.demo;public class TestObersver { public static void main(String[] args) { Person person=new Person(); //声...
分类:编程语言   时间:2015-01-23 18:11:55    阅读次数:187
发送邮件
//判断QQ是否在线private void simpleButton1_Click(object sender, EventArgs e) { string ssnum = "1000000"; string eenum = "999999999"; Int32 startnum = Int32....
分类:其他好文   时间:2015-01-23 18:08:15    阅读次数:136
Android利用反射实现设置wifi代理
public static void setObjField(Object obj, Object value, String name) throws SecurityException, NoSuchFieldException, IllegalArgumentException, I...
分类:移动开发   时间:2015-01-23 17:45:21    阅读次数:315
jqgrid 参数一
1、Options 1.1 caption string 表格的标题。显示在Header上。若为空号将不会显示。 empty caption : "Manipulating Array Data" 1.2 colNames array 列名称数组。该名称将在Header中显示。名称以逗号分隔,数量应...
分类:其他好文   时间:2015-01-23 17:43:25    阅读次数:127
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!