码迷,mamicode.com
首页 >  
搜索关键字:color    ( 180498个结果
double型浮点数能精确到多少位小数?
问题2:double型浮点数能精确到多少位小数?或者,这个问题本身值得商榷?既然double是浮点数,它的小数点的位置是“浮动”的,所以很难说double类型能精确到小数点后面几位。通常这个关于精度的问题都是通过它能表示的有效数字(十进制)的位数来表示的。遵循IEEE标准的8字节(64位)的doub...
分类:其他好文   时间:2014-08-19 12:28:44    阅读次数:1748
POJ 2451 Uyuw's Concert(半平面交nlgn)
//#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #include #include #include #include #include #define ll long...
分类:其他好文   时间:2014-08-19 12:28:14    阅读次数:261
Android之下载管理者
public interface HttpDownloader { public void setDownloadManager(HttpDownloadManager manager); public HttpDownloadManager getDownloadManager(); ...
分类:移动开发   时间:2014-08-19 12:27:44    阅读次数:181
Lunch Time
hdu4807:http://acm.hdu.edu.cn/showproblem.php?pid=4807题意:给你n个点(0--n-1),点之间是有向边,0号点有k个人,现在0号点的k个人要到n-1号点。每条边有一个容量,就是单位时间内最多允许c个人通过,通过一条边需要一个单位时间,现在问你最后...
分类:其他好文   时间:2014-08-19 12:27:24    阅读次数:233
Android图片管理组件(双缓存+异步加载)
转自:http://www.oschina.net/code/snippet_219356_18887?p=3#comments ImageManager2这个类具有异步从网络下载图片,从sd读取本地图片,内存缓存,硬盘缓存,图片使用动画渐现等功能,已经将其应用在包含大量图片的应用中一年多,没有出现...
分类:移动开发   时间:2014-08-19 12:26:54    阅读次数:367
测时间,精确到usec
#include #include #include /* accurate to usec*/void getusertime(){ static struct timeval tpstart,tpend; static float timeuse; static...
分类:其他好文   时间:2014-08-19 12:26:34    阅读次数:192
CMSIS RTOS -- embOS segger
#ifndef __CMSIS_OS_H__#define __CMSIS_OS_H__#include #include #include "RTOS.h"// API version (main [31:16] .sub [15:0])#define osCMSIS ...
分类:其他好文   时间:2014-08-19 12:26:14    阅读次数:561
Psql 安装问题
在openerp安装过程中报错:psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain so...
分类:数据库   时间:2014-08-19 12:26:05    阅读次数:154
结构struct
【意义】结构struct是一种粗糙的数据类型,严格意义下的数据类型,不但有数据的内部表示以及表示范围,还要有数据的操作;显然,struct不具备以上要求【定义结构】(1)struct pointe{ doubel x; double y}; //分号不能忘(2)struct可以嵌套定义s...
分类:其他好文   时间:2014-08-19 12:25:14    阅读次数:141
【编程题目】在从 1 到 n 的正数中 1 出现的次数
30.在从 1 到 n 的正数中 1 出现的次数(数组)题目:输入一个整数 n,求从 1 到 n 这 n 个整数的十进制表示中 1 出现的次数。例如输入 12,从 1 到 12 这些整数中包含 1 的数字有 1, 10, 1 1 和 12, 1 一共出现了 5 次。思路:如1121 判断 千位 1....
分类:其他好文   时间:2014-08-19 12:25:04    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!