/**
* 功能:全局作用域解析
* 时间:2014年8月19日10:51:32
* 作者:cutter_point
*/
int a; //全局
void f(){} //全局
struct S
{
int a;
void f();
};
void S::f()
{
::f(); //外面那个。全局的
::a++; //外面那个全局...
分类:
编程语言 时间:
2014-08-19 10:56:04
阅读次数:
215
1)、检查集群状态: [grid@rac02 ~]$ crsctl check cluster CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CR...
分类:
数据库 时间:
2014-08-18 23:32:53
阅读次数:
449
题目链接:http://poj.org/problem?id=3020题目意思:首先,请忽略那幅有可能误导他人成分的截图(可能我悟性差,反正有一点点误导我了)。 给出一幅 h * w 的图, “ * ” 表示 point of interest,“ o ” 忽略之。你可以对 " * " (假设这.....
分类:
其他好文 时间:
2014-08-18 23:28:03
阅读次数:
287
题目链接:uva 1549 - Lattice Point
题目大意:给定圆半径,以原点为圆心,求园内有多少个整数点。
解题思路:首先坐标轴将圆分成4份,所以只要单独考虑每一块的个数乘4再加1即可(原点)
#include
#include
#include
#include
using namespace std;
const double pi = 4 * atan(1...
分类:
其他好文 时间:
2014-08-18 20:33:52
阅读次数:
206
先上图:关键是在检測到手指移动的时候用mPath.quadTo的方法,android sdk解释是:Add a quadratic bezier from the last point, approaching control point (x1,y1), and ending at (x2,y2)...
分类:
移动开发 时间:
2014-08-18 15:57:42
阅读次数:
304
5.8.State Types5.8.1.Introduction5.8.2.Service and Host Check Retries5.8.3.Soft States5.8.4.Hard States5.8.5.Example5.8.1.IntroductionThe current stat...
分类:
其他好文 时间:
2014-08-18 12:03:34
阅读次数:
279
1. if __name__ == "__main__"Term:模块最高级的代码:模块中没有缩进的代码Principal 1:第一次导入模块会执行模块最高级的代码。不管你是否需要,这就是python 导入的行为。提醒,只有属于模块最高级的代码才是全局变量,全局类,和全局函数声明Principal ...
分类:
其他好文 时间:
2014-08-18 12:01:24
阅读次数:
217
头文件
/**
* 功能:下推栈(push_down stack)不会越出内存
* 时间:2014年8月18日08:13:36
* 作者:cutter_point
*/
#ifndef STACK_H_INCLUDED
#define STACK_H_INCLUDED
struct Stack
{
struct Link
{
void* data; //这个结构...
分类:
编程语言 时间:
2014-08-18 09:18:33
阅读次数:
326
/**
* 功能:用sizeof运算符可以确定struct的长度。
* 时间:2014年8月18日08:10:14
* 作者:cutter_point
*/
#include"CLib.h"
#include"CppLib.h"
#include
using namespace std;
struct A
{
int i[100];
};
struct B
{
void f...
分类:
编程语言 时间:
2014-08-18 09:18:23
阅读次数:
204
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-08-17 19:55:32
阅读次数:
215