码迷,mamicode.com
首页 >  
搜索关键字:a long    ( 19145个结果
LCD驱动程序
定义LCD相应寄存器的结构体struct lcd_regs { unsigned long lcdcon1; unsigned long lcdcon2; unsigned long lcdcon3; unsigned long lcd...
分类:其他好文   时间:2014-07-01 19:12:25    阅读次数:204
c语言中long long类型的赋值
long long unsigned int num = 20140701092715;在C语言中编译器会把没有小数的数值常量默认为整形,这条语句编译器会报警告: [root@localhost ~]# gcc -o test 1.c 1.c: In function ‘main’: 1.c...
分类:编程语言   时间:2014-07-01 18:56:09    阅读次数:233
Another Significant Advantage To These Buying Bags Is The Area
As long as you know, the purpose of the bag that you want to buy, everything goes, and you can get a good deal. For more information, click on this li...
分类:其他好文   时间:2014-07-01 18:13:09    阅读次数:210
structDemo1
structDemo1# include # include enum EType{ One = 1,Tow,Three };struct S1{ int id ; char name [111]; long version ;};int main(void){ ET...
分类:其他好文   时间:2014-07-01 17:16:06    阅读次数:151
Java UNIX时间转换
public static String toLocalTime(String unix) { Long timestamp = Long.parseLong(unix) * 1000; String date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"...
分类:编程语言   时间:2014-07-01 16:58:40    阅读次数:269
[整理]浮点数的自增陷阱
1.++--适用于浮点数2.实际不使用浮点数的++--浮点数 包括float 、double、 long double等等都是近似存储所以每一个浮点数的值都不是准确的于是如果采取自加 在一些特殊情况下a的近似值和a+1的近似值会等同即自加完全没有效果如果用在循环中 就有可能导致死循环.#includ...
分类:其他好文   时间:2014-07-01 11:55:36    阅读次数:292
一个显示日期的工具类
一个显示日期的工具类 .h文件 #import @interface TimeUtil : NSObject + (NSString*)getTimeStr1:(long long)time; +(NSString*) getTimeStrStyle1:(long long)time; + (NSString*)getTimeStr1Short:(long long)time; ...
分类:其他好文   时间:2014-07-01 08:21:52    阅读次数:266
进程间通讯之消息队列
#include #include #define MAX_MSG_BUF_LEN    512 int iKey = 6004; struct ipcmsgbuf {     long mtype;     char mtext[MAX_MSG_BUF_LEN]; }; int main( void ) {     int qid;     cha...
分类:其他好文   时间:2014-07-01 06:50:31    阅读次数:199
uva 11885 - Number of Battlefields(矩阵快速幂)
题目连接:uva 11885 - Number of Battlefields 题目大意:给出周长p,问多少种形状的周长为p的,并且该图形的最小包围矩阵的周长也是p,不包括矩形。 解题思路:矩阵快速幂,如果包含矩形的话,对应的则是斐波那契数列的偶数项,所以对应减去矩形的个数即可。 #include #include typedef long long ll; const l...
分类:其他好文   时间:2014-07-01 06:21:33    阅读次数:226
U-boot引导流程分析二
Stage II过程分析 在Stage II中使用到了一些比较重要的数据结构,这里先对这些数据结构来进行下分析: typedef struct global_data { bd_t *bd; unsigned long flags; unsigned long baudrate; unsigned long have_console; /* serial_init() was cal...
分类:其他好文   时间:2014-07-01 06:16:16    阅读次数:371
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!