C++读书总结
happyangelling
这个作者很懒,什么都没留下…
展开
-
关于isalpha的使用
在Thinking C++ 中while(!isalpha(*p) && p != end)p++;// Copy until the first non-alpha character:while (isalpha(*p) && p != end) should be while( p != end && !isalpha((unsigned char)*p)原创 2009-11-06 16:12:00 · 1018 阅读 · 0 评论 -
Container 总结
vector在末端插入,适合随机访问,原理数组,适合开始就知道对象数目的情况deque在首尾插入,list在末端插入,适合随机插入删除。set适合排除重复list排队要用成员sort,不要用general sort,general sort对list效率比较低 deque is usually more efficient than list for pushing th原创 2009-11-09 10:28:00 · 445 阅读 · 0 评论 -
WildLifeMonitor.cpp VS2005编译问题
//: C04:WildLifeMonitor.cpp#include #include #include #include #include #include #include using namespace std;class DataPoint {int x, y; // Location coordinatestime_t time; // T原创 2009-11-12 14:30:00 · 541 阅读 · 0 评论 -
fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
此问题为连接库生成文件的平台类型不匹配的问题,一般在Build 高版本的时候容易出现这个问题.在VS2005中:查找:Project--**Properties--Configuration Properties--Linker--Command Line下有Additional Properties你会看到:/subsystem:windowsce,4.2转载 2010-01-07 13:26:00 · 720 阅读 · 0 评论 -
读取excel
HRESULT CreadexcleDlg::AutoWrap(int autoType, VARIANT *pvResult, IDispatch *pDisp, LPOLESTR ptName, int cArgs...){ // Begin variable-argument list... va_list marker; va_start(marker, cArgs); if(!pDisp原创 2010-04-10 21:06:00 · 1005 阅读 · 0 评论 -
标准C获得文件大小的5种方法
<br />int getfilesize()<br /> {<br /> int iresult;<br /> struct _stat buf;<br /> iresult = _stat(__FILE__,&buf);<br /> if(iresult == 0)<br /> {<br /> return buf.st_size;<br /> }<br /> return NU转载 2010-10-11 15:54:00 · 1411 阅读 · 0 评论