2016年7月8日

ffmpeg crtmpserver red5 搭建

摘要: 安装 ffmpeg sudo apt-get install ffmpeg 安装 ffmpeg 如果没有 ffmpeg 尝试加入下面 ppa sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next && sudo apt-get update 阅读全文

posted @ 2016-07-08 20:23 庄冠华 阅读(183) 评论(0) 推荐(0) 编辑

2010年10月27日

One example of STL map

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<map>#include<iostream>#include<string.h>//formemcmpusingnamespacestd;type... 阅读全文

posted @ 2010-10-27 12:33 庄冠华 阅读(205) 评论(0) 推荐(0) 编辑

2010年7月12日

strcpy

摘要: [代码] 阅读全文

posted @ 2010-07-12 16:25 庄冠华 阅读(201) 评论(0) 推荐(0) 编辑

glibc 中的 strlen 高效实现

摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<string.h>#include<stdlib.h>#undefstrlen/*Returnthelengthofthenull-terminatedst... 阅读全文

posted @ 2010-07-12 15:34 庄冠华 阅读(334) 评论(0) 推荐(0) 编辑

面试遇到的题目:strstr 子串查找

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--char*strstr(char*buf,char*sub){char*bp,*sp;if(!*sub)returnbuf;while(*buf){bp=buf;sp=sub;do{if(!*sp)r... 阅读全文

posted @ 2010-07-12 15:28 庄冠华 阅读(340) 评论(0) 推荐(0) 编辑

2010年7月1日

魔方层先法简明图解,最少记6个公式即可完成魔方六面

摘要: 关于魔方层先法这里不多介绍了,自己google,百度一下。此处图解简明扼要,只需要记最少6个公式即可完成魔方六面。 阅读全文

posted @ 2010-07-01 15:13 庄冠华 阅读(15765) 评论(1) 推荐(1) 编辑

n! 的二进制表示中最低位1的位置

摘要: //n! 的二进制表示中最低位1的位置 intposFact(intn) { intret=0; while(n) { n>>=1;//本质上与n!的末尾有多少个0的问题一致,此处等同于n/=2; ret+=n; } returnret; } 阅读全文

posted @ 2010-07-01 14:41 庄冠华 阅读(218) 评论(0) 推荐(0) 编辑

cont char *p 和 char* const p 区别及记忆方法

摘要: /* contchar*p和char*constp区别及记忆方法 constchar*p="hello";和charconst*p="hello";等价 保护的是内容(即这段buffer只读,记忆:const在*p前,*p是取内容,保护内容) char*constp=new(char[20]); 保护的是指针(记忆:const在p前,p是个指针,保护指针) */ 阅读全文

posted @ 2010-07-01 14:41 庄冠华 阅读(218) 评论(0) 推荐(0) 编辑

微软面试题:某水王的发帖数超过总贴数的一半,找出之

摘要: [代码] 阅读全文

posted @ 2010-07-01 14:40 庄冠华 阅读(210) 评论(0) 推荐(0) 编辑

转帖节选:卓有成效的管理者(彼得.德鲁克)

摘要: 卓有成效的管理者(彼得.德鲁克)概要管理者的工作必须卓有成效“谁”是管理者?在一个现代的组织中,如果一位知识工作者能够凭借其职位和知识,对该组织负有贡献的责任,因而能实质的影响该组织的经营能力及达成的成果,那么他就是一位管理者。什么是有效?1、必须按时做完该做的事。2、只有对组织有贡献才算是有效。什么是有效性?有效性——就是使能力、知识、资源能够产生... 阅读全文

posted @ 2010-07-01 14:36 庄冠华 阅读(422) 评论(0) 推荐(0) 编辑

导航