大约有 10,000 项符合查询结果(耗时:0.0228秒) [XML]

https://www.tsingfun.com/it/cpp/1700.html 

为什么编译好的libcurl静态lib用不了? - C/C++ - 清泛网 - 专注C/C++及内核技术

...:http://curl.haxx.se/docs/faq.html#Link_errors_when_building_libcur 需要调用静态lib的工程(非libcurl源代码工程)预编译器中添加 CURL_STATICLIB ,即可解决。 原因解析: curl.h中部分代码 #ifdef CURL_STATICLIB # define CURL_EXTERN #elif defined...
https://www.tsingfun.com/it/cpp/1960.html 

c/c++浮点输出时,不显示小数点后没用的0 - C/C++ - 清泛网 - 专注C/C++及内核技术

...%g输出0.000000001(即浮点数的0,不理解的请参考《浮点数内存中的表示》)时,它显示的是e-xxx科学计数的形式: printf("%g\n", 1.4000000001 - 1.4000000002); printf("%g\n", 1.4000000001 - 1.4000000001); 浮点输出 %g
https://www.tsingfun.com/it/cpp/2043.html 

error C2872: “count”: 不明确的符号 - C/C++ - 清泛网 - 专注C/C++及内核技术

...= "<<count<<endl; return 0; } 2) 使用命名空间引用变量,命名空间中定义变量、函数和类。 #include <iostream> using namespace std; namespace global { int count = 0;//重新定义一个命名空间 } int increment() { return ++glob...
https://www.tsingfun.com/it/cpp/2045.html 

MiniDumpWriteDump 记录dmp文件的简单实例(附调试方法) - C/C++ - 清泛网...

...rentProcessId(), hDmpFile, MiniDumpNormal, &stInfo, NULL, NULL); } 然后程序初始化的位置 ::SetUnhandledExceptionFilter(ExceptionHandler); 这样,只要程序发生崩溃,便会记录一个minidump文件。 dmp调试方法: 双击dmp文件,默认以vs打开: ...
https://www.tsingfun.com/it/cpp/2060.html 

deque iterator not dereferencable 问题 - C/C++ - 清泛网 - 专注C/C++及内核技术

... 出现这种情况有两种可能: 第一:访问某一个不存的位置。 比如: #include<iostream> #include <queue> using namespace std; int main() { queue<int> x; for(int i = 0;i < 10;i++) { x.push(i+1); } while(!x.empty()) {...
https://www.tsingfun.com/it/cpp/2093.html 

error C2662: “Screen::move”: 不能将“this”指针从“const Screen”转...

...书写。 这里要注意,display函数返回的是const引用,因此调用move函数中返回非const引用时无法实现转换导致出错。 解决的办法就是通过成员函数是否为const实现函数重载,定义两套函数,分别作为const成员函数和非const成员函...
https://www.tsingfun.com/it/cpp/2101.html 

passing xxx as \'this\' argument of xxx discards qualifiers - C/C++ - 清泛网 - 专注C/C++及内核技术

...于常量对象调用了非常量成员函数引起的错误,错误原因于常量对象只能调用常量成员函数(因为常量成员函数约定不对非静态成员进行修改...这是由于常量对象调用了非常量成员函数引起的错误,错误原因于常量对象只能调用...
https://www.tsingfun.com/it/cpp/2104.html 

auto_ptr is not dereferencable - C/C++ - 清泛网 - 专注C/C++及内核技术

... pt2's destructor // deletes the pointer, but pt1's does nothing auto_ptr拷贝时会转移内存控制权,例子中pt1赋值给pt2后,将内存管理权转移给pt2, 此时pt1指针为NULL。 auto_ptr dereferencable
https://www.tsingfun.com/it/cpp/2172.html 

VC CTreeCtrl复选框checkbox的使用方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...注意事项 (1)点击CHECKBOX后会自动更新CheckBox的状态,因此处理代码中不需要使用SetCheck函数设置状态,而GetCheck函数返回也是其原始状态。 (2)点击新CHECKBOX后不会自动将对应的ITEM设置为选择状态,需要使用SelectItem函数进行设...
https://www.tsingfun.com/it/cpp/2176.html 

OnMouseMove nFlags的作用 - C/C++ - 清泛网 - 专注C/C++及内核技术

...对位置,例如当窗口的左上角坐标为(10,10)那么当鼠标屏幕的(10,10)像素点的时候,OnMouseMove函数point值为(0,0)因为是相对窗口左上角的相对位置。 定义参考如下: #ifndef NOKEYSTATES /* * Key State Masks for Mouse Messages *...