2012年5月31日
摘要: void *memset(void *s, int ch, size_t n); 函数解释:将s中前n个字节替换为ch并返回s; memset:作用是在一段内存块中填充某个给定的值,它是对较大的结构体或数组进行清零操作的一种最快方法。 原型声明:extern char *strcpy(char *dest,const char *src); 头文件:string.h 功能:把从src地址开始且含有NULL结束符的字符串赋值到以dest开始的地址空间 说明:src和dest所指内存区域不可以重叠且dest必须有足够的空间来容纳src的字符串。 返回指向dest的指针。 函数功能:把格... 阅读全文
posted @ 2012-05-31 17:12 cbwcwy 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 运行GoogleTest Sample在VMware/Redhat enterprise V5* make[root@localhost make]# makemake: Warning: File `Makefile' has modification time 2.3e+07 s in the futureg++ -I../include -g -Wall -Wextra -c ../samples/sample1.ccg++ -I../include -g -Wall -Wextra -c ../samples/sample1_unittest.ccg++ -I../includ 阅读全文
posted @ 2012-05-31 11:21 cbwcwy 阅读(3482) 评论(1) 推荐(0) 编辑