#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define INF 100000000
using namespace std;
struct node{
int x,y;
bool operator < (const ...
分类:
其他好文 时间:
2015-05-04 18:06:21
阅读次数:
100
Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.解题思路:既然不呢个用乘除和取模运算,只好采用移位运算,可以通过设置一个leng...
分类:
编程语言 时间:
2015-05-04 17:20:02
阅读次数:
149
元素保证是连续存储了 operator[]之类的不可以invalidate iterator了,于是COW不行了 不再是container所以swap不需要遵守不能copy/move/swap元素的规定,于是SSO可行了 reference不再是Allocator::reference了,而直接就是...
分类:
编程语言 时间:
2015-05-04 13:23:38
阅读次数:
128
1,#和##操作符Operator,使用 首个参数返回为一个带引号的字符串predefined variablewas not declared in the scope;2,调试debuging program,like breakpoint;abort();把此函数放置于你想一终端语句的下一行;...
分类:
其他好文 时间:
2015-05-03 23:40:21
阅读次数:
270
#include using namespace std;class Test1
{
public:
Test1()
{
//赋值
//p=NULL;
// or p=new int; }
//重要
Test1& operator=(const Test1& test1)
{
i...
分类:
编程语言 时间:
2015-05-03 14:39:17
阅读次数:
109
org.hibernate.QueryException: Expected positional parameter count: 1, actual。。。。显示这样的异常错误部分代码:String hql="from Customer where username=?"; Query quer....
分类:
Web程序 时间:
2015-05-02 01:05:26
阅读次数:
194
Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its faces at least once. Assume that the dice is fair, that means when you throw the dic...
分类:
其他好文 时间:
2015-05-01 12:08:28
阅读次数:
141
Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its faces at least once. Assume that the dice is fair, that means when you throw the dice...
分类:
其他好文 时间:
2015-04-30 18:22:36
阅读次数:
99
size_tsize_t. A basic unsigned integer C/C++ type. It is the type of the result returned by sizeof operator. The type's size is chosen so that it coul...
分类:
编程语言 时间:
2015-04-30 17:49:26
阅读次数:
135
public class fdgfg{ Vector v; public fdgfg() { v = new Vector(); } public void produceExpression(int bit,char operator) { ...
分类:
其他好文 时间:
2015-04-30 17:48:25
阅读次数:
137