LA 4992&& hdu 3761Jungle Outpost杭电的有点坑啊。。一直爆内存,后来发现大白的半平面交模板那里 point *p = new point[n]; line *q = new line[n]这里出了问题,应该是在函数里面申请不了比较大的数组,所以爆内存。。我在全局定义了两...
分类:
其他好文 时间:
2014-09-07 23:47:36
阅读次数:
293
WebGrid Helper with Check All Checkboxes Tuesday, September 13, 2011ASP.NET ASP.NET MVC Html Helper jQuery WebMatrix Introduction: WebGrid helper is o...
分类:
Web程序 时间:
2014-09-07 23:44:05
阅读次数:
300
2-1 Point类的定义Time Limit: 1000MS Memory limit: 65536K题目描述通过本题目的练习可以掌握类与对象的定义;设计一个点类Time,它具有私有数据成员x(横坐标)、y(纵坐标);公有成员函数:SetPoint(int,int)用于设置点对象的值,ShowPo...
分类:
其他好文 时间:
2014-09-07 22:25:35
阅读次数:
356
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 endpo...
分类:
其他好文 时间:
2014-09-07 18:28:25
阅读次数:
271
无论什么时候传递一个地址给一个函数,都应该尽可能地用const修饰它。
/**
* 书本:【ThinkingInC++】
* 功能:论const对函数返回值的作用
* 时间:2014年9月7日14:14:01
* 作者:cutter_point
*/
class X
{
int i;
public:
X(int ii=0);
void modify();
};
X::...
分类:
编程语言 时间:
2014-09-07 14:49:35
阅读次数:
287
指针的const有两种:const修饰指针正指向的对象,或者修饰指针里面存储的地址。
/**
* 书本:【ThinkingInC++】
* 功能:const的传递和返回地址
* 时间:2014年9月7日14:11:41
* 作者:cutter_point
*/
//参数为非const类型的
void t(int*){}
//参数是const类型的
void u(const int* ...
分类:
编程语言 时间:
2014-09-07 14:49:25
阅读次数:
248
1 public class QuickSort { 2 3 public void sort(int[] k,int low,int high) 4 { 5 int point; 6 if(low=point) //当右边的值比中轴值...
分类:
其他好文 时间:
2014-09-07 12:13:45
阅读次数:
220
题目:Problem Description“Point, point, life of student!”This is a ballad(歌谣)well known in colleges, and you must care about your score in this exam too....
分类:
其他好文 时间:
2014-09-07 10:57:54
阅读次数:
257
部分代码如下Main.javapackage com;import java.awt.Color;import java.awt.Container;import java.awt.Point;import java.awt.event.ActionEvent;import java.awt.eve...
分类:
编程语言 时间:
2014-09-07 10:56:45
阅读次数:
539
3.Actions-Basic:此demo中体现ccp由Point取代①ActionManual:直接设置精灵的属性demo。const Color3B Color3B::RED (255, 0, 0);const Color3B Color3B::GREEN ( 0, 255, 0);co...
分类:
其他好文 时间:
2014-09-07 09:48:44
阅读次数:
291