码迷,mamicode.com
首页 >  
搜索关键字:calculate    ( 959个结果
ZOJ 3772 Calculate the Function(矩阵线段树)
Description You are given a list of numbers A1A2 .. AN and M queries. For the i-th query: The query has two parameters Li and Ri.The query will define a function Fi(x) on the domain [Li, Ri] ∈...
分类:其他好文   时间:2015-07-06 21:48:51    阅读次数:92
【C语言】编写函数实现库函数atof
//编写函数实现库函数atof #include #include #include #include double calculate(const char *src, int flag) { double num = 0.0; int n = 0; int count = 0; while (*src) { if ((*src >= '0') && (*src <= '9...
分类:编程语言   时间:2015-07-05 12:31:41    阅读次数:256
【C语言】编写函数实现库函数atoi,把字符串转换成整形(考虑数字过大)
//编写函数实现库函数atoi,把字符串转换成整形 #include #include #include #include long long calculate(const char *src, int flag) { long long num = 0; while (*src ) { if ((*src >= '0') && (*src <= '9'))//判断输?入是否为...
分类:编程语言   时间:2015-07-05 12:30:52    阅读次数:126
杭电HDU1042(有点坑的高精度)
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1042题意:Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N!是不是很简单呢?一般方法:#include#includeusing ...
分类:其他好文   时间:2015-07-03 17:24:09    阅读次数:118
junit的使用,测试 calculate.java
0.juint的安装下载junit的jar包,在要使用Junit的project名字上,点击properties--〉java build path-libraries,点击Add External JARs,把Junit包点上。1.在eclipse中建立工程及calculate.java。2.工程...
分类:编程语言   时间:2015-06-29 22:08:10    阅读次数:150
Calculate CRC32 as in STM32 hardware (EWARM v.5.50 and later)
http://supp.iar.com/Support/?note=64424&from=note+11927BackgroundThe STM32 devices from ST Micro have a built-in hardware CRC32 calculator. (So using ...
分类:其他好文   时间:2015-06-27 16:00:03    阅读次数:295
杭电1012--u Calculate e
u Calculate eTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 35178Accepted Submission(s): 15843Pro...
分类:其他好文   时间:2015-06-24 01:58:44    阅读次数:155
算法学习之循环和递归
【摘要】 大家都知道递归的实现是通过调用函数本身,函数调用的时候,每次调用时要做地址保存,参数传递等,这是通过一个递归工作栈实现的。原理上讲,所有递归都是可以消除的,代价就是可能自己要维护一个栈。而且我个人认为,很多情况下用递归还是必要的,它往往能把复杂问题分解成更为简单的步骤,而且很能反映问题的本质。循环和递归其实存在一定的联系。 1)求和递归函数 我们可以举一个循环的例子,前面我们说过,如果编写一个1到n的求和函数怎么写呢,你可能会这么写: int calculate(int m) { in...
分类:编程语言   时间:2015-06-17 21:51:38    阅读次数:143
文本表达式计算之后缀表达式构造
package com.potato.calculate.activity; import java.util.ArrayList; import java.util.List; import com.potato.calculate.utils.SimpleUtils; public class BBB { public static void main(String[] args)...
分类:其他好文   时间:2015-06-16 16:48:07    阅读次数:94
【AmazeUI】AmazeUI的确定框与确定框的致命缺陷
在AmazeUI这个手机前端框架可以通过以下的脚本: function calculate(){ $('#confirm1').modal({ }); } 来触发在HTML已经如下布局的确定框: 确定框内容 确定 取消 ...
分类:其他好文   时间:2015-06-13 12:58:52    阅读次数:426
959条   上一页 1 ... 66 67 68 69 70 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!