1 2 #include 3 #include 4 #include 5 #include 6
#include 7 8 using namespace std; 9 struct node 10 { 11 int data; 12 int le...
分类:
其他好文 时间:
2014-05-08 10:31:35
阅读次数:
362
http://acm.hdu.edu.cn/showproblem.php?pid=1213
1 #include 2 #include 3 #include 4 #define maxn 2000 5 using namespace std; 6 7
int f[maxn],n,m; 8 ...
分类:
其他好文 时间:
2014-05-08 10:10:44
阅读次数:
308
#include#includeusing namespace std;int main(){
const int N=100; int const N=100; //二者等价 int mark=0; //1 int*
ref_mark=&mark; int* c...
分类:
其他好文 时间:
2014-05-08 10:02:04
阅读次数:
205
热身运动:1. 启动MongoDB shell => mongo.exe or
./mongo(先确保有一个mongod的实例):2. 切换到一个用于练手的namespace => use
xxxxxxx:增:db.[table].insert({[field]: [value]})查:db.[ta...
分类:
数据库 时间:
2014-05-08 07:59:42
阅读次数:
435
先上源码: 1 using System; 2 using
System.Diagnostics; 3 using System.IO; 4 using System.IO.Compression; 5 using
System.Text; 6 7 namespace TestCompress 8....
分类:
其他好文 时间:
2014-05-08 07:04:16
阅读次数:
360
#include
#include
using namespace std;
class Point
{
public:
Point(double x=0,double y=0);
void setPoint(double,double);
double getx()
{
return x;
}
double gety()
...
分类:
其他好文 时间:
2014-05-08 04:44:47
阅读次数:
237
#include
using namespace std;
//节点类
template
struct QNode
{
T data;
QNode *next;
};
//队列类
template
struct LinkList
{
QNode * front;
QNode * rear;
size_t size;
};
//构造一个空队列
template
void InitQueu...
分类:
编程语言 时间:
2014-05-08 03:48:19
阅读次数:
346
定义了一个基类的指针,通过基类操纵派生类,初始化派生类对象。。粤粤大神教我的。。嘻嘻。。。
代码如下:
#include
#include
#include
using namespace std;
void menu1() // 选择积分函数功能菜单
{
cout<<" 请 选 择 被 积 函 数"<<endl;
cout<<"\n...
分类:
其他好文 时间:
2014-05-08 03:46:23
阅读次数:
289
#include
#include
using namespace std;
class Point
{
public:
Point(double x=0,double y=0);
void setPoint(double,double);
double getx()
{
return x;
}
double gety()
...
分类:
其他好文 时间:
2014-05-08 03:42:17
阅读次数:
273
两种解法。
我想到的是最大的矩形,中间一定有个最矮的某个单位矩形,所以用两个数组记录任何一个单位矩形histogram[i]左右两边第一个比它小的单位矩形的序号,这里找的时候用DP加速。
#include
using namespace std;
//the histogram stored from left to right
long histogram[100001]...
分类:
其他好文 时间:
2014-05-08 01:59:37
阅读次数:
443