![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
[C++]
一刀不二
这个作者很懒,什么都没留下…
展开
-
二维凸包 Graham 算法
三点以下的情况就不写了Python:import mathclass Point( object ): def __init__( self, x, y ): self.x = x self.y = y def __cmp__( self, other ): if self.y < other.y:原创 2014-09-12 23:46:06 · 1334 阅读 · 0 评论 -
字节顺序
#include typedef int* int_ptr;typedef unsigned char* byte_ptr;void show_bytes( byte_ptr start, int len ){ int i; for( i = 0; i < len; ++i ){ printf( " %4.2x", start[i] ); } printf( "\n"原创 2014-10-07 11:21:50 · 987 阅读 · 0 评论