所谓“工欲善其事,必先利其器”,从程序员的角度来讲,好工具
Templates in C++ - Pros and ConsBy SergeyChepurin | 29 Oct 2011C++WindowsIntermediateAdvantages and drawbacks of usingtemplates in C++ projectsLicence CPOL First Posted 29Oct 2011 Views 3,
1. 警告消息 'function': was declared deprecatedCompiler Warning (level 1) C4996Error Message 'function': was declared deprecatedThe c
下面是转载的在博客上看到的一个C++书籍阅读清单,可以参考下: 阶段 1 《
一些有用的c++ utility#define ITEMSOF(arr) (sizeof(arr) / sizeof(0[arr]))(0[arr] is identical to arr[0] for arrays but will intentionally fail if it's used against a C++ object that overloads operator[]
{...}D从
<br />
gcc gc D:\sys\Toolkit\gcc4.4.0Bboost1.45.0\mingw\bin\gcc.exe -Wall -c $(FileName) $(FileDir) gl "D:\sys\Toolkit\gcc4.4.0Bboost1.45.0\mingw\bin\gcc.exe" $(FileNameNoExt).o -lstdc++ -lboost_system -lw
//z 2011-05-10 20:04:52@is2120 tag: c++ typeid 实现 使用 用法 typeid是什么? 是c++的一个操作符,用于获取一个表达式的类型 typeid如何实现 typeid (5.3.7): find vtable, through that find most derived class objec
is2120@ 1. 修饰变量,使得在初始化变量值后不能在修改其值。 // 无const修饰 int x = 4; x = 10; // 有const修饰 const int x = 2; x = 10; // err 2. const替代#define的好处 在调试时可以看见变量名,而#define后调试时只能看见值 避免了宏定义带来的种种麻烦(宏是直接的文本替代,这会带
//z 2012-11-22 18:48:32 IS2120@BG
正则表达式 regular expression greta vc6 compile 2008 2010 1. greta 在 vc6下能顺利编译 greta 2.64. (最后的版本已不存在vc6和vc6之外的区别了,作者最后合并到一起了) 2. 使用 vs2008 (visual studio 2008) 编译会出现以下这些错误: 2.1 具体错误 error C2923
Users of Visual Studio 2003 and newer may directly go to below and skip this one. //z 2012-1-13 10:36 is2120 方法一 - - - Q: How to use 'CString' in non-MFCapplications?A: In most cases, you don't need t
http://qtandopencv.blogspot.com/202120@BG57IV3 T30517
译者序前言第一部分 基本工具 第1章
1. #include #include int main (){
<br />那道socket的面试题我说我不会,那公司又给我了另一道更加变态的题目:<b
<br />通过一个非法的指针或者NULL指针调用成员函数会发生什么?#include
Chapter 1 Deducing Types Item Item 3: Understand declt
1. 查找vector中某个元素是否存在std::find(vector.begin(), vector.end(), item)!=vector.end()2. 从iterator得到位置( position )it = std::find(vector.begin(), vector.end(), item)if(it != v.end()){ return it
//z 2011-06-25 17:53:49
从实例学习c++之:1. 内联构
写得不简洁,1h。总结一个清晰简洁
对于所有人都适用-
z 包含 array 相关头文件。#include using namespace std;using namespace boost;//z 仿函数,输出array各元素。class P
// parse url 解析 url c c++ 代码 rfc 2068 #include <stdio.h> #include <string.h> #include <stdlib.h> // 解析url,作为示例,很多情况没考虑,比如说user,pass之类的 int parse_url(char *url, char **serverst
After installed the mobileme control panel on my Win7 X64, the mobileme contro
<br /> assert vs. ASSERT(mfc) 区别<br /> 1. 首先 assert 是c标准里的一个宏,而ASSERT是MFC的一个宏
1. 在 c++ 中删除一个 NULL pointer (空指针)是安全的2. 标准中相关内容如下:"In either alternat
//z 2014-06-10 21:53:05 L.204' 7615 BG57IV3@BYH T922356184 .K.F3274646399[T2,L70,R2,V15] Leveldb http://code.google.com/p/leveldb/ Gperftools http://code.google.com/p/gperftools/ Google Breakpad https
Copyright © 2005-2023 51CTO.COM 版权所有 京ICP证060544号