刚开始看到这个 很蛋疼
还是慢慢理解
首先
void(*func)(int) 是一个指针 指向一个 返回值为void 参数为int的函数
是一个函数指针
具体理解http://zhidao.baidu.com/link?url=5GpEN7wPUhDlk_m-3drRHV9bGxv53tj818vtd1GIsyaVfyY1mdsFZfP6_2M_DNAfTQrh0qxMo_wXhK1Cj...
分类:
编程语言 时间:
2015-03-12 11:35:49
阅读次数:
382
1925. British Scientists Save the World
Time limit: 1.0 second
Memory limit: 64 MB
The world is in danger! Aliens threw a mysterious device to Earth n years ago. Every year an unknown sig...
分类:
其他好文 时间:
2015-03-11 08:13:32
阅读次数:
201
1.alarmalarm()执行后,进程将继续执行,在后期(alarm以后)的执行过程中将会在seconds秒后收到信号SIGALRM并执行其处理函数。#include #include #include void sigalrm_fn(int sig){ printf("alarm!\n"); a...
分类:
系统相关 时间:
2015-03-09 20:42:08
阅读次数:
280
运行环境:Windows7.1 在 Python 3 中虽有encoding 参数,但是对于有BOM(如Windows下用记事本指定为utf-8)的文件,需要使用 utf-8-sig, 使用utf-8就没戏. 配置文件 (utf-8格式,带BOM) [test]
a?=?中文 Python...
CAS = Central Authentication Service,中央认证服务,一种独立开始指令协议。CAS 是 Yale 大学发起的一个开源项目,旨在为 Web 应用系统提供一种可靠的单点登录方法,CAS 在 2004 年 12 月正式成为 JA-SIG 的一个项目。 百度百科:ht...
分类:
编程语言 时间:
2015-03-06 22:01:13
阅读次数:
255
三种不同精度的睡眠1.sleep#include
unsigned int sleep(unsigned int seconds);RETURN VALUE Zero if the requested time has elapsed, or the number of seconds left to sleep, if the call was interrupted by a sig...
分类:
系统相关 时间:
2015-02-18 16:28:26
阅读次数:
236
首先还是取得验证码,抓包可得:http://check.ptlogin2.qq.com/check?regmaster=&pt_tea=1&uin=2630366651&appid=7000101&js_ver=10113&js_type=1&login_sig=jBX*GEgR-BFtNPRz-R...
分类:
编程语言 时间:
2015-02-17 14:03:06
阅读次数:
203
【转载请注明出处】http://www.cnblogs.com/mashiqi在回归问题中,偶尔我们会遇到求方差的估计的情况。举了例子,我们常常通过Gaussian分布${\cal N}(\mu ,{\sigma^2})$的样本集合$\{x_i\}_{i=1}^n$去估计分布的参数$\mu,\sig...
分类:
其他好文 时间:
2015-02-14 14:58:20
阅读次数:
267
// signals/sigusr.c 10-1
#include "apue.h" static void sig_usr(int); /* one handler for both signals */ int main(void)
{ if (signal...
分类:
其他好文 时间:
2015-02-06 20:16:36
阅读次数:
176
#!/usr/bin/perl-wusestrict;useIO::Socket::INET;useIO::Socket::SSL;useGetopt::Long;useConfig;$SIG{‘PIPE‘}=‘IGNORE‘;#Ignorebrokenpipeerrorsprint<<EOTEXT;CCCCCCCCCCOOCCOOOOO888\@8\@8888OOOOCCOOO888888888\@\@\@\@\@\@\@\@\@8\@8\@\@\@\@888OOCooocccc::::CCCC..
分类:
其他好文 时间:
2015-02-02 20:03:51
阅读次数:
523