1 数学函数
数学库函数声明在 math.h 中,主要有:
abs(x) 求整型数x 的绝对值
cos(x) x(弧度)的余弦
fabs(x) 求浮点数x 的绝对值
ceil(x) 求不小于x 的最小整数
floor(x) 求不大于x 的最小整数
log(x) 求x 的自然对数
log10(x) 求x 的对数(底为10)
pow(x, y) 求x 的y 次方
sin(x) 求x...
分类:
编程语言 时间:
2014-06-20 11:34:13
阅读次数:
349
没想到NOI竟然还有这种数学题,看来要好好学数论了……网上的题解:完整的结题报告:首先我们需要知道一个知识,对于坐标系第一象限任意的整点(即横纵坐标均为整数的点)p(n,m),其与原点o(0,0)的连线上除过原点整点的个数为gcd(n,m)。其他象限上个数则为gcd(abs(n),abs(m)),这...
分类:
其他好文 时间:
2014-06-08 21:48:10
阅读次数:
196
Open vSwitch Advanced Features
Tutorial=======================================Many tutorials cover the basics
of OpenFlow. This is not such atutorial....
分类:
其他好文 时间:
2014-06-07 08:56:17
阅读次数:
282
对称加密:DES(Data Encryption Standard), 1976,
容易被破解,不安全AES(Advanced Encryption Standard orRijndael), around 2001,目前最流行
aes-128|192|256非对称加密(public-key cry...
分类:
其他好文 时间:
2014-06-07 02:16:58
阅读次数:
218
我们将要实现一个进行应用层DDoS攻击的工具,综合考虑,CC攻击是最佳选择。使用bash
shell脚本来快速实现并验证这一工具。在最后,将花费大量的笔墨来讨论如何防御来自应用层的DDoS攻击,描述了一个应对应用层DDoS攻击的防御状态机。访问
http://eecs.cc:8080/ 查看靶机状态...
分类:
其他好文 时间:
2014-06-05 22:12:03
阅读次数:
523
ARMARM架构,过去称作高级精简指令集机器(Advanced RISC
Machine,更早称作:Acorn RISC Machine),是一个32位精简指令集reduced instruction set
computing(RISC)处理器架构,其广泛地使用在许多嵌入式系统设计。由于节能的特点...
分类:
其他好文 时间:
2014-06-05 15:20:52
阅读次数:
381
参考Netty API
io.netty.channel.ChannelPipeline
A list of ChannelHandlers which handles or intercepts inbound events and outbount operations of a
Channel. ChannelPipeline implements an advanced fo...
分类:
Web程序 时间:
2014-06-01 15:44:27
阅读次数:
533
1、消息接口namespace IBLL{ public interface IMsg { List
GetMsgList(); }}View Code2、消息A实现namespace BLLA.Abs{ /// /// 抽象工厂调用 /// ...
分类:
其他好文 时间:
2014-05-31 21:11:19
阅读次数:
296
原型: double abs (double x); float abs (float
x);long double abs (long double x); double abs (T x); // additional overloads
for int...
分类:
其他好文 时间:
2014-05-31 18:20:46
阅读次数:
250
具体设置如下:1. 调整IIS 7应用程序池队列长度由原来的默认1000改为65535。IIS
Manager > ApplicationPools > Advanced SettingsQueue Length : 655352. 调整IIS
7的appConcurrentRequestLimit...