码迷,mamicode.com
首页 >  
搜索关键字:floating point    ( 7266个结果
POJ 1410
内部也是相交#include #include #include #include using namespace std;struct point{ int x,y;};struct edge{ point start,end;}line[4],the;void swaped(int &x,int...
分类:其他好文   时间:2014-07-26 14:31:00    阅读次数:272
-> 运算符(C# 参考)
-> 运算符将指针取消引用与成员访问组合在一起。 x->y 其中 x 为 T* 类型的指针,y 为 T 的成员 等效于 (*x).y 只能在标记为不安全的代码中使用 -> 运算符。不能重载 -> 运算符。 // compile with: /unsafestruct Point{ public in...
分类:其他好文   时间:2014-07-26 14:03:52    阅读次数:194
破解之寻找OEP[手动脱壳](1)
OEP:(Original Entry Point),程序的入口点,软件加壳就是隐藏了OEP(或者用了假的OEP), 只要我们找到程序真正的OEP,就可以立刻脱壳。 PUSHAD (压栈) 代表程序的入口点POPAD (出栈) 代表程序的出口点,与PUSHAD相对应,一般找到这个OEP就在附近啦!常...
分类:其他好文   时间:2014-07-26 01:44:16    阅读次数:249
sql 计算两经纬度间的距离
DECLARE @g geography;SET @g = geography::STPointFromText('POINT(113.216273 23.236333)', 4326);SELECT @g.ToString();DECLARE @gg geography;SET @gg = geo...
分类:数据库   时间:2014-07-24 22:24:22    阅读次数:525
[价值阅读]pp必死,Web永生。
转自:http://www.bawo.me/point-of-view/jzydppbswebys-375.html导语:这里,说App必死,Web永生,是指目前这种需要下载和安装的移动互联网应用模式,必然衰落(但不会衰亡),而代之崛起的是基于html和浏览器的应用,必会卷土重来,重新占据移动和整个...
分类:Web程序   时间:2014-07-24 14:44:05    阅读次数:286
URAL 1750 Pakhom and the Gully 计算几何+floyd
题目链接:点击打开链接 gg。。。 #pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #include #include #include #include #include using namespace std; #define ll int #define point Poin...
分类:其他好文   时间:2014-07-24 12:24:55    阅读次数:256
Copy List with Random Pointer leetcode java
题目: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 c....
分类:编程语言   时间:2014-07-24 10:00:33    阅读次数:310
Topcoder SRM 628 DIV 2
被自己蠢哭了。。。。 250-point problem 国际象棋棋盘上给出两个坐标,问象从一个走到另一个最少要几步。 黑格象只能走黑格,白格象只能走白格,只要判断两个坐标的颜色是否相同就能判断是否可达,观察棋盘可以发现坐标的奇偶性决定了格子的颜色;可达的情况下最多两步就能达到,所以只要判断格子是否在同一条斜线上就行了。 #include #include #include #incl...
分类:其他好文   时间:2014-07-23 21:00:45    阅读次数:225
北大ACM暑期培训课程目录(四)
本文出自:http://blog.csdn.net/svitter Computational Geometry 计算几何     ACM中基本是最麻烦的部分。     几何代码都要自己写,STL中也没有。基本上。     struct point     数乘,差乘,计算几何题目抄。一个数字由于误差积累造成大。     避免误差。     注意:        ...
分类:其他好文   时间:2014-07-23 20:59:58    阅读次数:164
openCV 和GDI画线效率对比
一、 由于项目需要,原来用GDI做的画线的功能,新的项目中考虑到垮平台的问题,打算用openCV来实现,故此做个效率对比。 二、 2点做一条线,来测试效率。 用了同样的画板大小---256*256的大小,函数通过参数输入,用GetTickCount来实现计时功能。 三、 GDI的主要循代码如下: void show_line(int line_num,int point_num)...
分类:其他好文   时间:2014-07-23 17:16:32    阅读次数:319
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!