方法一 算法 : public int isLeft(Point P0, Point
P1,Point P2) { int abc= ((P1.X - P0.X) * (P2.Y - P0.Y) - (P2.X - P0.X) * (P1.Y -
P0.Y)); return abc; } priv...
分类:
其他好文 时间:
2014-06-07 10:33:56
阅读次数:
351
Linux
Mount远程目录Linux的mount命令可谓强大,可以将远程机器的目录来挂接到本地作为一个目录存在,以后你就如同访问本地目录一下的访问远程目录。为了达到这个目的你需要做至少两件事情:1.在被mount的机器上做nfs的设定2.在需要mount的机器上做mount设定。首先来看如何在被...
分类:
系统相关 时间:
2014-06-06 22:40:01
阅读次数:
356
// openGL_yuv.cpp : Defines the entry point for the
console application.//#include "stdafx.h"#include #include #include #include
"GL/glew.h"#include "...
分类:
其他好文 时间:
2014-06-06 17:35:29
阅读次数:
522
1、结构中可以声明字段,但是不能够给字段初始值public struct Point {
private int x; x = 1; //错误 1 类、结构或接口成员声明中的标记“=”无效 public Point(int x)...
分类:
其他好文 时间:
2014-06-06 15:57:00
阅读次数:
215
1.挂载共享目录mount -t cifs //192.168.0.1/aa /tmp/export
-o username=text,password=test//192.168.0.1/aa 为:windows的共享目录/tmp/export
为:挂在点username=test test为wi...
Catch That CowDescriptionFarmer John has been
informed of the location of a fugitive cow and wants to catch her immediately.
He starts at a point N (0...
分类:
其他好文 时间:
2014-06-05 19:54:29
阅读次数:
298
配置一个共享文件夹 名为MyShare将增强功能包载入CD然后进入 CentOS输入ls
/dev就可以看到挂载cd 名字为dvd 或者后面还带数字然后挂载mount -t iso9660 /dev/dvd1 /media/cdrom cd
/media/cdrom开始安装./VBoxLinuxAd...
CPU的标识ILP32:Windows X86 int long point 32位=
4个字节LP64: X86_64 long point 64位 = 8个字节char和string的存储区别1. char 是标准C语言类型,
优点:基础类型,结构单一,速度快,拷贝快,因为不是基于new和del...
分类:
编程语言 时间:
2014-06-05 17:32:54
阅读次数:
251
由于做项目的需要和自己的爱好,最近在找关于无线路由器的资料,找到了些相关的资料,在这里总结一下。一、无线路由器与无线AP的区别AP为Access
Point简称,一般翻译为“访问节点”,无线AP主要是提供无线工作站对有线局域网和从有线局域网对无线工作站的访问,在访问接入点覆盖范围内的无线工作站可以通...
分类:
其他好文 时间:
2014-06-05 17:30:22
阅读次数:
321
一。介绍public abstract void invalidateDrawable
(Drawable who)Called when the drawable needs to be redrawn. A view at this point
should invalidate itself ...
分类:
其他好文 时间:
2014-06-05 14:13:44
阅读次数:
218