/** * calc_map_distance() , 根据地图上的两个点各自的x,y坐标,计算出2点之间的直线距离 * @param array $point_1 第1个点的x,y坐标 array( 101 , 202 ) * @param array $po...
分类:
其他好文 时间:
2014-07-16 23:11:28
阅读次数:
166
背景: private System.Windows.Controls.Border _borderTouch; private bool _mouseDown = false; private System.Windows.Point _currentPoint = new System.Wi.....
分类:
其他好文 时间:
2014-07-10 00:29:50
阅读次数:
287
题目链接 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 ...
分类:
其他好文 时间:
2014-07-07 22:25:30
阅读次数:
359
Problem Description:A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null...
分类:
其他好文 时间:
2014-07-07 16:19:01
阅读次数:
188
对每个圆二分半径寻找可行的最小半径,然后取最小的一个半径。
对于两圆相交就只要求到两个扇形,然后减去两个全等三角形就行了。
#include
#include
#include
#include
using namespace std;
#define pi acos(-1.0)
#define eps 1e-8
#define maxn 50
int n;
struct point{...
分类:
其他好文 时间:
2014-06-29 22:36:16
阅读次数:
247
【题目】
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
【题意】
给定一个链表,每个节点除了next指针外,还有一个random指针,指向任意的节点。
要求,复制这样的一个链表
【思路】
思路...
分类:
其他好文 时间:
2014-06-29 20:41:21
阅读次数:
232
1、下面是一个结构的定义:
public struct Point
{
public int X { get; set; }
public int Y { get; set; }
}
什么时候用结构:
用于小型的数据结构
其中的值一般不修改...
分类:
其他好文 时间:
2014-06-28 08:38:41
阅读次数:
164
两端的hellointerval和deadtime不匹配。可以用showipospfinterfaceXX查看。通常是10/40s或者是30/120s。两端的掩码不一致。OSPF邻居建立要求两个端口的掩码一致。两端
的网络类型不一致。网络类型包括point-to-point,Non-broadcastMultiAccess,Broadcast
MultiAccess,point-..
分类:
其他好文 时间:
2014-06-28 00:39:04
阅读次数:
305
先看一个简单的例子
代码:
// ConsoleApplication3_6_23.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
#include
using namespace std;
using namespace cv;...
分类:
其他好文 时间:
2014-06-27 23:52:41
阅读次数:
406
Please define the NDK_PROJECT_PATH variable to point to it...
分类:
其他好文 时间:
2014-06-27 07:56:49
阅读次数:
195