码迷,mamicode.com
首页 >  
搜索关键字:token null is not fo    ( 40942个结果
C语言宏#和##
C语言宏#和##一、基本用途#用于将宏定义中的参数转换为字符串。例:存在宏#define TO_STRING(x) #x则TO_STRING(hello)展开为"hello"##用于拼接Token。例:存在宏#define DECLARE_HANDLER(x) x##_handler则DECLARE...
分类:编程语言   时间:2014-05-27 00:19:05    阅读次数:357
遍历二叉树
二叉树定义:每个结点最多有两个子树的树struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} };...
分类:其他好文   时间:2014-05-26 23:43:52    阅读次数:351
leetcode -- Flatten Binary Tree to Linked List
算法:1. 对root的左子树做处理,让左子树的根节点作为,根节点的右子树,并让右子树作为左子树根节点的右子树的子树2. 递归遍历右子树public void flatten(TreeNode root) { if(root==null){ return; ...
分类:其他好文   时间:2014-05-26 23:39:49    阅读次数:253
二叉树非递归访问
二叉树非递归访问,借助一个栈,来模拟递归调用过程。struct TreeNode { char val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL...
分类:其他好文   时间:2014-05-26 22:25:25    阅读次数:353
用递归做的前序中序后序遍历
#include#include#include#include#includeusing namespace std;class node{public: int val; node* left; node* right; node():val(0),left(NULL),...
分类:其他好文   时间:2014-05-26 21:36:49    阅读次数:264
getActiveWorkbenchWindow() return null 解决办法
getActiveWorkbenchWindow 有如下声明 /** * Returns the currently active window for this workbench (if any). Returns * null if there is no active workbench window. Returns * null if called from a non-...
分类:Windows程序   时间:2014-05-23 02:30:07    阅读次数:472
Java中的null对象也可以访问static成员变量和方法
注意:Java中的null对象也可以访问static成员。不过虽然这样的做法没错,却不值得提倡,因为有时会给人带来困扰,我自己在走读代码时就经历过......
分类:编程语言   时间:2014-05-23 01:35:34    阅读次数:229
asp.net或javascript判断是否手机访问
///  /// 判断手机用户UserAgent ///  ///  private bool IsMobile() {          HttpContext context = HttpContext.Current;     if (context != null)     {         HttpRequest request = context.Request;         i...
分类:移动开发   时间:2014-05-23 01:06:25    阅读次数:258
【数据库摘要】7_Sql_Outer_Join
LEFT JOIN 操作符 LEFT JOIN 关键字从左表(table1)返回所有的行,即使右表(table2)中没有匹配。如果右表中没有匹配,则结果为 NULL。 SQL LEFT JOIN 语法 SELECT column_name(s) FROM table1 LEFT JOIN table2 ON table1.column_name=table2.column_name;...
分类:数据库   时间:2014-05-23 00:10:46    阅读次数:497
UI 资料
android window 一些属性说明 @null :Dialog的windowFrame框为无 true:是否浮现在activity之上 false:是否半透明 true:是否显示title @drawable/dia_bg:设置dialog的背景 false: 背景是否模糊显示...
分类:其他好文   时间:2014-05-22 23:47:57    阅读次数:344
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!