#include
#include
const int maxn = 100000;
struct Point{
double x,y;
Point() {}
Point(double _x, double _y) {
x = _x;
y = _y;
}
Point operator -(const Point &B) c...
分类:
其他好文 时间:
2015-06-04 09:53:46
阅读次数:
152
select * from b_workOrder select * from( SELECT work_order_id,work_level, roles,code FROM (SELECT work_order_id,work_level,operator_code,...
分类:
数据库 时间:
2015-06-03 18:58:54
阅读次数:
172
分析:并查集实现最小生成树。不能用cin和cout(使用了ios::sync_with_stdio(false);都不行),否则TLE。
#include
#include
#include
using namespace std;
#define N 1005
int father[N*N];
struct EDGE
{
int u,v;
int len;
bool operator...
分类:
其他好文 时间:
2015-06-02 20:11:10
阅读次数:
575
class MyLess{public: bool operator()(const CString str1,const CString str2)const { return TRUE; }};map MapSendValue;http://www.360doc.com/content/13/....
分类:
编程语言 时间:
2015-06-02 17:04:39
阅读次数:
131
1、javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"request").
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"request"). Expected elements are ,,,...
spr...
分类:
编程语言 时间:
2015-06-02 13:29:18
阅读次数:
134
Divide two integers without using multiplication, division and mod operator.比有趣在于1 提速过程 2怎么判断符号正负public class Solution { public int divide(int divi...
分类:
其他好文 时间:
2015-06-02 06:47:51
阅读次数:
91
当定义一个类时,我们显式地或隐式地指定在此类型的对象拷贝、移动、赋值和销毁时做什么。一个类通过定义五种特殊的成员函数来控制这些操作,包括:拷贝构造函数(copy constructor)、拷贝赋值运算符(copy-assignment operator)、移动构造函数(move constructor)、移动赋值运算符(move-assignment operator)和析构函数(destructo...
分类:
其他好文 时间:
2015-06-01 22:44:45
阅读次数:
97
Basic template一个基础型模板包括一个向量的实现DATE: 2015-06-01#define op operator#define __ while#define _0 returntypedef long long ll;inline ll _(ll a,ll b){ll t;__(...
分类:
其他好文 时间:
2015-06-01 22:23:12
阅读次数:
126
常规的运算符只能计算基本类型的变相,没办法将对象相加或者相减Timer t1;
Timer t2;
t1 + t2;//t1和t2是对象,不能相加要想能实现对象的运算,必须要重载运算符成员函数形式重载运算符重载运算符只需要把函数名换成operator+const Timer operator+(Timer t);//重载+号运算符,调用的时候默认有个this形参const Timer Timer::...
分类:
编程语言 时间:
2015-06-01 18:49:27
阅读次数:
151
类中3个重要的成员函数,标准形式如下:class A{public: A(); A(const A&); A& operator=(const A&); ~A();}; 以后会补充
分类:
其他好文 时间:
2015-06-01 11:15:04
阅读次数:
98