/**
* 功能:创建两个函数,一个接受一个string*参数,另外一个接受一个string&参数。每个
* 函数必须用它特有的方式去改变外部的string对象。在main()中,创建和初始化一个
* string对象,输出它,然后传给每个函数,输出结果。
* 时间:2014年8月16日12:24:50
* 作者:cutter_point
*/
#include
#inclu...
分类:
编程语言 时间:
2014-08-16 12:33:40
阅读次数:
234
告警信息 check_ins_slave_io_running(err_cnt:1)critical- slaveionotrunonins:3014,3051,3060,3079,3097,3104,3106,3107,3108,3116,3119,3123,3170,3150,3151 ...
分类:
其他好文 时间:
2014-08-16 02:15:19
阅读次数:
359
http://poj.org/problem?id=2151 Check the difficulty of problemsTime Limit:2000MSMemory Limit:65536KTotal Submissions:487...
分类:
其他好文 时间:
2014-08-15 22:30:39
阅读次数:
290
#include #include #include #include #include #include using namespace std;#define eps 1e-8#define MAXX 1000010typedef struct point{ double x; do...
分类:
其他好文 时间:
2014-08-15 22:29:19
阅读次数:
223
今天学习了一下二分图,赶紧总结整理一下:
二分图问题,有很多,但归根结底还是求最大匹配数。
Point 1:
二分图中的最小点覆盖数 = 最大匹配数
最小点覆盖:也就是说用最少的点覆盖所有的边
Point 2 :
二分图中的最小路径覆盖 = 顶点数 - 最大匹配数
最小路径覆盖:也叫最小边覆盖,是指用尽量少的不相交的路径覆盖图中的所有顶点。
Point...
分类:
其他好文 时间:
2014-08-15 21:11:39
阅读次数:
266
值类型是比引用类型更“轻型”的一种类型,因为它们不作为对象在托管堆中分配,不会被来及回收,也不通过指针来引用。但在许多情况下,都需要获取对值类型的一个实例的引用。 例如,假定要创建一个ArrayList对象(System.Collections命名空间中定义的一个类型)来容纳一组Point结构...
分类:
其他好文 时间:
2014-08-15 19:15:49
阅读次数:
188
访问登记属性android.permission.ACCESS_CHECKIN_PROPERTIES ,读取或写入登记check-in数据库属性表的权限获取错略位置android.permission.ACCESS_COARSE_LOCATION,通过WiFi或移动基站的方式获取用户错略的经纬度信息...
分类:
移动开发 时间:
2014-08-15 19:13:59
阅读次数:
321
写一个程序,结果总是不对,check逻辑好几遍也没发现错误,无奈之下debug。发现一个有趣的现象abs(INT_MAX-(-1))返回值是-2147483648。于是看了下abs函数的代码实现。1 int __cdecl abs (2 int number3 )4 ...
分类:
其他好文 时间:
2014-08-15 17:47:39
阅读次数:
231
784 - Maze ExplorationA maze of rectangular rooms is represented on a two dimensional grid as illustrated in gure 1a.Each point of the grid is ...
分类:
其他好文 时间:
2014-08-15 14:24:48
阅读次数:
176
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, suc...
分类:
其他好文 时间:
2014-08-15 10:47:38
阅读次数:
255