方法1:#div1{ width:200px; height:200px; background:green; position:absolute; left:0; top:0; right:0; bottom:0; margin:auto;}方法2:#div1{ width:4...
分类:
其他好文 时间:
2014-10-20 23:17:59
阅读次数:
222
POJ 2553 The Bottom of a Graph
题目链接
题意:给定一个有向图,求出度为0的强连通分量
思路:缩点搞即可
代码:
#include
#include
#include
#include
#include
using namespace std;
const int N = 5005;
int n, m;
vector g[N...
分类:
其他好文 时间:
2014-10-20 19:33:28
阅读次数:
178
从iOS7开始,系统提供了2种管理状态栏的方式
通过UIViewController管理(每一个UIViewController都可以拥有自己不同的状态栏)
通过UIApplication管理(一个应用程序的状态栏都由它统一管理)
在iOS7中,默认情况下,状态栏都是由UIViewController管理的,UIViewController实现下列方法就可以轻松管理状态栏的可见性和样式
状...
分类:
移动开发 时间:
2014-10-20 19:31:45
阅读次数:
155
1.if you declare a method to be static in your .cc file.The reason is thatstaticmeans something different inside .cc files than in class declarations ...
分类:
其他好文 时间:
2014-10-20 19:24:37
阅读次数:
223
插入并保存文档操作用insert向目标集合插入文档,如果没有_id键则会自动添加。最后自动保存。>db.foo.insert({"bar":"baz"})如果要批量插入怎么办呢,看下面代码:>db.foo.insert([{"_id":0},{"_id":1},"{"_id":2}])以前有一个ba...
分类:
数据库 时间:
2014-10-20 16:36:35
阅读次数:
207
background:背景(写法 颜色 图片 位置 平铺)background-color:背景颜色background-images:背景图片background-position:背景图片位置(允许负值conter left right top bottom 也可为像素值)background-...
分类:
Web程序 时间:
2014-10-20 08:39:26
阅读次数:
205
【题目】
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down o...
分类:
其他好文 时间:
2014-10-19 21:25:37
阅读次数:
247
函数名: imagesize
功 能: 返回保存位图像所需的字节数
用 法: unsigned far imagesize(int left, int top, int right, int bottom);
程序例:
#include
#include
#include
#include
#define ARROW_SIZE 10
void draw_arrow...
分类:
编程语言 时间:
2014-10-19 07:59:43
阅读次数:
179
最近在按照Android的API文档学习Android中actionbar的使用,Action bar 最基本的形式,就是为 activity 显示标题,并且在标题左边显示一个 app icon。在这样简单的形式下,对于所有的 activity 来说,action bar 对告知用户他们当前所处的位...
分类:
移动开发 时间:
2014-10-19 01:21:22
阅读次数:
176
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:
其他好文 时间:
2014-10-18 19:43:01
阅读次数:
179