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
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2014-09-06 23:43:44
阅读次数:
209
Unique Paths:
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is t...
分类:
其他好文 时间:
2014-09-06 22:37:14
阅读次数:
246
题目链接题意 : 给你一个多边形,问你里边能够盛的下的最大的圆的半径是多少。思路 :先二分半径r,半平面交向内推进r。模板题 1 #include 2 #include 3 #include 4 #include 5 const double eps = 1e-10 ; 6 ...
分类:
其他好文 时间:
2014-09-06 20:00:03
阅读次数:
279
/**
* 书本:【ThinkingInC++】
* 功能:联合
* 时间:2014年9月6日14:51:40
* 作者:cutter_point
*/
#include
using namespace std;
union U
{
private:
int i;
float f;
public:
U(int a);
U(float b);
~U();...
分类:
编程语言 时间:
2014-09-06 16:11:43
阅读次数:
267
/**
* 书本:【ThinkingInC++】
* 功能:更安全的union可以封装在一个类中
* 时间:2014年9月6日14:53:04
* 作者:cutter_point
*/
#include
using namespace std;
class SuperVar
{
//enum没有类型名(他是一个没有加标记的枚举),如果想立即定义enum的实例时,
//这种做法...
分类:
编程语言 时间:
2014-09-06 16:11:35
阅读次数:
254
头文件
/**
* 书本:【ThinkingInC++】
* 功能:选择重载还是默认参数,头文件
* 时间:2014年9月6日14:54:28
* 作者:cutter_point
*/
#ifndef MEM_H_INCLUDED
#define MEM_H_INCLUDED
typedef unsigned char byte;
class Mem
{
byte* mem;
...
分类:
编程语言 时间:
2014-09-06 16:11:13
阅读次数:
419