定时器0方式2
#include
#define uchar unsigned char
#define uint unsigned int
sbit led1=P1;
uint num;
void main()
{
TMOD=0x02;
TH0=6;
TL0=6;
EA=1;
ET0=1;
TR0=1;
while(1)
{
if(num==3686)
{
...
分类:
其他好文 时间:
2014-07-22 22:49:34
阅读次数:
225
关于C的运算符、表达式的基本概念。 数据对象(data object):泛指数据存储区的术语(用于保存变量或者数组的存储区就是一个数据对象); 左值(lvalue):用于标识一个特定的数据对象的名字或者表达式;因为不是...
分类:
其他好文 时间:
2014-07-22 09:16:34
阅读次数:
228
下面代码就是获取到用户通讯录头像的代码: ContentResolver?cr?=?view.getContext().getContentResolver();
Uri?uri?=?ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI,
Long.parseLon...
分类:
其他好文 时间:
2014-07-22 09:13:35
阅读次数:
175
sublime的一个默认设置让人很不爽,比如现在选项卡里面已经打开了一个文件A,当你从左边side bar里面点击一个新文件B时,如果你不是快速的双击,且A没有处于编辑未保存状态,那么B就会覆盖A的选项卡,而不是在新选项卡中打开.而我绝大多数都是希望在新选项卡中打开新文件的,经常需要来回比较和修改多...
分类:
其他好文 时间:
2014-07-22 09:13:33
阅读次数:
330
1)只能对命名类型和命名类型的指针编写方法(即方法的接收者必须是命名类型的值/指针),二级或多级指针是不行的。同时,你只能在定义命名类型的那个包编写其方法,另外的包里是不行的。 2)当你写了一个方法之后...
分类:
其他好文 时间:
2014-07-22 09:03:05
阅读次数:
196
#include
#include
#include
#define ZERO 0
const int FIRST_CHAR = '0';
char num[11111][20] ;
typedef struct node
{
struct node *child[20]; /* 存储下一个字符 */
int n; /* 记录当前单词出现的次数 */
}node, *No...
分类:
其他好文 时间:
2014-07-22 08:31:36
阅读次数:
205
public?static?void?main(String[]?args)?{
//????????//?TODO?Auto-generated?method?stub
????????try?{
????????????System.out.println("how‘s?the?weather...
分类:
其他好文 时间:
2014-07-22 08:25:35
阅读次数:
196
在使用grep 搜索到字符串时,输出信息如下: Matched?to?a?binary?file:log 从打印消息上看,这个文本文件被当作二进制文件。 为什么? 用vim?打开log?发现原因,log文件有个^@字符,这其实就是c语言字符串...
分类:
其他好文 时间:
2014-07-22 08:19:36
阅读次数:
188
String command = OpenOffice_HOME
+ "program\\soffice -headless -accept=\"socket,host=127.0.0.1,port=8100;urp;\" -nofirststartwizard ";
command = "cmd /c sta...
分类:
编程语言 时间:
2014-07-21 10:38:09
阅读次数:
311
最近看了一篇文章,译名《简历危险》,原名《Resumes are dangerous》。 作者为Alex Maccaw,他有一篇文章曾经在网上流传甚广——《Traveling, Writing and Programming (2011)》(及其后续的《How to travel ar...
分类:
其他好文 时间:
2014-07-21 10:36:25
阅读次数:
231