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 肯定;爱 阅读(32597) 评论(1) 推荐(1) 编辑