上一页 1 2 3 4 5 6 ··· 10 下一页
  2012年6月12日
摘要: 起初,在C 中引入关键字static 是为了表示 退出一个块后仍然存在的局部变量。随后, static 有了第二张含义: 用来表示不能被其它文件访问的全局变量 和 函数。 为了避免引入新的关键字,所以仍使用 static 来表示这第二张含义。 阅读全文
posted @ 2012-06-12 16:31 肯定;爱 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 因为 属于基本类型,在类型不匹配时,会自动隐士类型转换,这就需要 我们自己在赋值时 注意。强制类型转换:当操作数的类型不同, 而且不属于基本数据类型时,需要强制类型转换即:属于基本数据类型时,会隐士类型转换。 int device_space_amount;unsigned long long device_free_size, device_total_size;device_space_amount=((float )device_free_size/device_total_size)*100;int 。。。。= float *100 5 unsigned long l... 阅读全文
posted @ 2012-06-12 10:37 肯定;爱 阅读(220) 评论(0) 推荐(0) 编辑
  2012年6月11日
摘要: set bootargs 'root=/dev/nfs rw mem=216M@0x89A00000 mem=458M@0xC3600000 console=ttyS0,115200 nfsroot=172.17.50.65:/home/lwj/topdir/master/export/android_4_0/release/target,v3 ip=172.17.50.188:172.17.50.65:172.17.0.1:255.255.0.0:target01:eth0:off init=/init' 阅读全文
posted @ 2012-06-11 11:01 肯定;爱 阅读(435) 评论(0) 推荐(0) 编辑
  2012年6月1日
摘要: 就如通常说过的。结构体 除非在 定义初始化时,可以赋值,其它 情况 下 只能 使用 结构体名.成员 来赋值。字符数组,使用 strcpy 来 赋值。 阅读全文
posted @ 2012-06-01 14:29 肯定;爱 阅读(380) 评论(0) 推荐(0) 编辑
  2012年5月31日
摘要: 1. 30min、60、90 change:draw is not called when update,dialog.text 的赋值如果是在draw中做,那么是不会改变的。应是:在update中改变,text内容。然后 draw dialog , 非 依赖draw。2. ui 一般能实现 所想要的功能,除非 该 UI 设计 的有问题,类似于 结构体 定义时候 考虑不全。但这种情况一般是不会的。就相当于说该UI 不成熟。3. 头文件:#include "pvr/ui_state_recording_list.h"因为 ui_state_recording_list.h 不 阅读全文
posted @ 2012-05-31 20:45 肯定;爱 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 原样输出字符串: printf("%s", str);2. 输出指定长度的字符串, 超长时不截断, 不足时右对齐: printf("%Ns", str); --N 为指定长度的10进制数值3. 输出指定长度的字符串, 超长时不截断, 不足时左对齐: printf("%-Ns", str); --N 为指定长度的10进制数值4. 输出指定长度的字符串, 超长时截断, 不足时右对齐: printf("%N.Ms", str); --N 为最终的字符串输出长度 --M 为从参数字符串中取出的子串长度5. 输出指定长度的字 阅读全文
posted @ 2012-05-31 15:00 肯定;爱 阅读(32574) 评论(1) 推荐(1) 编辑
  2012年5月28日
摘要: 驱动靠谱:东方网力科技股份有限公司 嵌入式 linux c/c++ 软件开发工程师 阅读全文
posted @ 2012-05-28 15:56 肯定;爱 阅读(154) 评论(0) 推荐(0) 编辑
  2012年4月27日
摘要: http://hi.baidu.com/octaviusrk/blog/item/d66ba34db5655604b3de05e9.html 阅读全文
posted @ 2012-04-27 22:33 肯定;爱 阅读(110) 评论(0) 推荐(0) 编辑
  2012年4月26日
摘要: putchar( ‘a’ ); 阅读全文
posted @ 2012-04-26 17:26 肯定;爱 阅读(183) 评论(0) 推荐(0) 编辑
摘要: What's the value of i++ + i++??It's undefined. Basically, in C and C++, if you read a variable twice in an expression where you also write it, the result is undefined. Don't do that. Another example is:v[i] = i++;Related example:f(v[i], i++);Here, the result is undefined because the orde 阅读全文
posted @ 2012-04-26 17:14 肯定;爱 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页