半平面交模板const double pi= acos(-1.0);#define
arc(x) (x / 180 * pi)const double EPS = 1e-8;const int Max_N = 105;struct Point{
double x,y; Point(){}...
分类:
其他好文 时间:
2014-04-30 17:00:01
阅读次数:
621
#网卡类型TYPE=Ethernet#网卡接口名称DEVICE=eth0#系统启动时是否自动加载ONBOOT=yes#启用地址协议 --static:静态协议
--bootp协议 --dhcp协议BOOTPROTO=static#网卡IP地址IPADDR=192.168.1.11#网卡网络地址NET...
分类:
其他好文 时间:
2014-04-30 15:12:24
阅读次数:
351
char* 转 float:double atof (const char* str);/* atof
example: sine calculator */#include /* printf, fgets */#include /* atof
*/#include ...
分类:
其他好文 时间:
2014-04-30 13:44:13
阅读次数:
410
1 /// 2 /// 将集合转换成DataTable 3 /// 4 /// 集合 5 /// 6
public static DataTable ToDataTable(IList list) 7 ...
分类:
其他好文 时间:
2014-04-29 17:22:46
阅读次数:
321
【转载】http://issf.blog.163.com/blog/static/1941290822009111894413472/最近用GDI+实现了几个自定义控件,但是发现存在内存泄露问题BOOL
CGdiplusBugDlg::OnEraseBkgnd(CDC* pDC){Image* pI...
分类:
其他好文 时间:
2014-04-29 17:16:46
阅读次数:
300
一. JDK5之前的实现方式在枚举类型出现之前,java是通过在接口或者类中定义public
static final 的变量来实现的。
比如对于四季的描述:-----------------------------------------------------------------------...
分类:
编程语言 时间:
2014-04-29 17:11:45
阅读次数:
449
//guI; graphics user interfaceimport
javax.swing.*;import java.awt.*; public class Main { public static void
main(String[] args) { JFra...
分类:
其他好文 时间:
2014-04-29 16:48:47
阅读次数:
313
poj 1279 求半平面交的
面积题目来源:http://poj.org/problem?id=1279分析: 求半平面交的 面积代码如下:const double EPS =
1e-8;const int Max_N = 1505;struct Point{ double x,y; ...
分类:
其他好文 时间:
2014-04-29 16:35:46
阅读次数:
499
如何在MATLAB下把模糊推理系统转化为查询表(原创)http://foundy.blog.163.com/blog/static/2633834420090212202156/?mode=edit在SIMULINK里把模糊逻辑生成查寻表(原创)http://foundy.blog.163.com/...
分类:
其他好文 时间:
2014-04-29 16:34:45
阅读次数:
327
一:新建类HotKeys命名空间:using
System.Runtime.InteropServices;二:注册热键API[DllImport("user32")]public static
extern bool RegisterHotKey(IntPtr hWnd, Int32 id, UI...
分类:
其他好文 时间:
2014-04-29 16:25:46
阅读次数:
330