class Solution {public: int
lengthOfLastWord(const char *s) { if (s == NULL) return 0; int mlen = 0, len =
0; bool inword = fa...
分类:
其他好文 时间:
2014-06-29 14:13:37
阅读次数:
229
判断类型之前,先要清楚有哪些类型。(理理思路:程序由数据和方法构成,数据由简单数据和复杂数据构成)即类型有:
数据(简单数据:boolean,string,num,undefined,null。复杂数据:object),
方法(function)万能的typeof,神一样的方法 typeof(...
分类:
编程语言 时间:
2014-06-07 05:40:05
阅读次数:
309
算法导论读书笔记(15) -
红黑树的具体实现目录红黑树的简单Java实现红黑树的简单Java实现/** * 红黑树 * * 部分代码参考自TreeMap源码 */public class
RedBlackTree { protected TreeNode root = null; pr...
分类:
其他好文 时间:
2014-06-07 05:08:01
阅读次数:
331
实例代码如下: String str = null; String uSelectDate =
String.valueOf(str);
System.out.println("==================uSelectDate:"+uSelectD...
分类:
编程语言 时间:
2014-05-30 09:39:52
阅读次数:
402
View view =
LayoutInflater.from(mContext).inflate(R.layout.song_item_adapter,
null);LayoutInflater inflater = (LayoutInflater)context.getSystemService...
分类:
移动开发 时间:
2014-05-29 00:32:23
阅读次数:
227
1. 问题:IReport如何实现变量字段$F{
propertyName}赋值为一个NULL对象时不显示”null”,
而显示为空白?解决方法:选中动态单元格,右键选择属性,在弹出对话框TextField选项卡中选中Blank when
null。思考:以往我们为IReport中变量字段赋值时会在...
分类:
其他好文 时间:
2014-05-29 00:04:49
阅读次数:
383
TCP通信需要通信双方都在线,所以需要先启动服务端进行监听,客户端才能获得连接,服务端代码:
static void Main(string[] args) { TcpClient client = null; NetworkStream s...
分类:
其他好文 时间:
2014-05-28 16:57:08
阅读次数:
320
//解析xml字符串 public void readStringXml(String
xml){Document doc=null;try { //将字符转化为XML doc=DocumentHelper.parseText(xml); ...
分类:
其他好文 时间:
2014-05-28 15:22:53
阅读次数:
264
cmb_State_Send.ItemsSource = null; XmlDocument
doc = new XmlDocument(); doc.Load("D:\\模板\\WorkstationSta...
分类:
其他好文 时间:
2014-05-28 10:56:45
阅读次数:
249
布局中通常会用到@null。如RadioButton常用的技巧通过RadioGroup实现Tab,需要设置android:button="@null"。如果要在代码中动态创建控件,android中并不能找到相关的属性或方法。搜索均无解决办法,最后想到一个变通的方法:通过透明色获取drawabl...
分类:
其他好文 时间:
2014-05-28 10:20:10
阅读次数:
360