Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2014-10-25 07:04:38
阅读次数:
181
1.导航元素,导航栏模拟淘宝网的导航<!DOCTYPEhtml><html><head><title>Bootstrap实例-嵌套列</title><linkhref="./bootstrap/css/bootstrap.min.css"rel="stylesheet"><scriptsrc="./scripts/jquery.min.js"></script><sc..
分类:
其他好文 时间:
2014-10-23 20:57:15
阅读次数:
284
http://blog.csdn.net/zoeice/article/details/8068671importjava.util.Vector;importandroid.content.Context;importandroid.graphics.Bitmap;importandroid.gr...
分类:
其他好文 时间:
2014-10-23 19:17:12
阅读次数:
254
http://blog.sina.com.cn/s/blog_63578f140100w56m.htmlUITabBar* tabBar = [[UITabBaralloc]initWithFrame:CGRectMake(40,0.0,240,30)];[mainView addSubview:t...
分类:
移动开发 时间:
2014-10-23 18:58:19
阅读次数:
144
1. #define的保护
所有头文件都应该使用#define 防止头文件被多重包含(multiple inclusion),命名格式
当是:___H_
为保证唯一性,头文件的命名应基于其所在项目源代码树的全路径。例如,项目foo 中的头
文件foo/src/bar/baz.h 按如下方式保护:
#ifndef FOO_BAR_BAZ_H_
#define FOO_BAR_BAZ_H_...
分类:
编程语言 时间:
2014-10-23 12:34:25
阅读次数:
231
来源:http://www.ido321.com/1086.html
最近,在项目中要用到分页。分页功能是经常使用的一个功能,所以,对其以函数形式进行了封装。
// 分页分装
/**
* $pageType 分页类型 1是数字分页 2是文本分页
* 可以将$pageTotal,$page,$total等数据作为参数传递,或者在paging作为全局变量(推荐)
*/
function paging($pageType)
{
global $pageTotal,$page,$total;...
分类:
Web程序 时间:
2014-10-23 09:31:59
阅读次数:
183
下面介绍精灵、动画精灵、按钮精灵、文本的常用使用方法
一、精灵相关
1.添加精灵
//创建精灵
Sprite bar_up = new Sprite(400, 0, RegionRes.getRegion(Res.BAR_UP), getVertexBufferObjectManager());
//将精灵添加至BaseEntityGroup或其子类(如:Scene、L...
分类:
其他好文 时间:
2014-10-22 18:27:15
阅读次数:
175
1 命名规则1.1 基本变量基本变量有三个:ngx_module_t 类型的 ngx_http_foo_bar_module;ngx_command_t 类型的数组 ngx_http_foo_bar_commands;ngx_http_module_t 类型的 ngx_http_foo_bar_mo...
分类:
其他好文 时间:
2014-10-22 17:41:49
阅读次数:
258
[leetcode]Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining....
分类:
移动开发 时间:
2014-10-22 10:05:30
阅读次数:
248
目录(?)[-]iOS 7中默认的导航栏设置导航栏的背景颜色在导航栏中使用背景图片定制返回按钮的颜修改导航栏标题的字体修改导航栏标题为图片添加多个按钮修改状态栏的风格隐藏状态栏总结注:本文译自Customizing Navigation Bar and Status Bar in iOS 7近期,跟...
分类:
移动开发 时间:
2014-10-22 06:18:07
阅读次数:
321