![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C
longfeihufengyun
本人组织、参与设计了多个大型系统,对大型系统的整体架构设计,对解耦、各种中间件有丰富的经验
展开
-
16进制转10进制自己写代码也可以这么算
16进制转10进制自己写代码也可以这么算原创 2010-08-29 21:46:00 · 589 阅读 · 0 评论 -
linux 性能测试
#include int tim_subtract(struct timeval *result, struct timeval *x, struct timeval *y) { if ( x->tv_sec > y->tv_sec ) return -1; if ((x->tv_sec==y->tv_sec) && (x->tv_usec>y->tv_us原创 2015-03-19 13:45:09 · 478 阅读 · 0 评论 -
c c++怎么判断一个字符串中是否含有汉字
//返回0:无中文,返回1:有中文 int IncludeChinese(char *str) { int nRet = 0; char c; while(c=*str++) { //如果字符高位为1且下一字符高位也是1则有中文字符 if( (c&0x80) && (*str & 0x80) ) { nRet = 1; break;原创 2015-12-10 16:38:21 · 13519 阅读 · 0 评论 -
gcc 编译选项
http://blog.chinaunix.net/uid-13539494-id-1991081.html http://www.rapidtables.com/code/linux/gcc/gcc-g.htm gcc -g option flag gcc -g generates debug information to be used by GDB debugger原创 2015-12-16 13:46:58 · 982 阅读 · 0 评论 -
正则表达式 教程网址
转一份某位大神的个人网址, 主要是正则表达式 教程 http://deerchao.net/转载 2016-01-26 13:42:22 · 317 阅读 · 0 评论 -
atof and atoi
#include #include #include using namespace std; /* * @brief: 转换输入的字符串到长整形数 * 过滤字符串开始的空格、+-号,逐个遍历数字字符,直到字符串末尾、 * 非数字,也可以支持E(e)指数字符串 * @input: nptr, const char*, 输入的字符串 * @retur原创 2016-03-15 16:35:07 · 351 阅读 · 0 评论 -
itoa
char* itoa(int num, char* pstr, int radix) { if(!pstr) return NULL; char* pRet = pstr; int power = 1; ::memset(pstr,0x00,strlen(pstr)); // 1. calc sign +- if(num { num = -num; *pstr+原创 2016-11-16 14:31:21 · 398 阅读 · 0 评论 -
zlib.hpp封装
// zlib.hpp : 定义控制台应用程序的入口点。 // #include /* * If you *really* need a unique prefix for all types and library functions, * compile with -DZ_PREFIX. The "standard" zlib should be compiled wi原创 2017-01-17 14:36:57 · 2040 阅读 · 0 评论 -
Base64.h封装
/************************************************** @Module : Base64 @FileName : Base64.h @Releted File : NULL @Function : class define for base64 encode or decode @Version : 1.0 @Copyr原创 2017-01-17 14:38:15 · 1834 阅读 · 0 评论