大约有 40,300 项符合查询结果(耗时:0.0384秒) [XML]

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

c语言编程中%g是什么格式? - C/C++ - 清泛网 - 专注C/C++及内核技术

...学记数法还是一般的小数记数法。 printf("%g\n", 0.00001234); //输出结果:1.234e-05 printf("%g\n", 0.0001234); //输出结果:0.0001234 printf("%.2g\n", 123.45); //输出结果:1.2e+02 printf("%.2g\n", 23.45); //输出结果:23 对于指数小于-4或者大于...
https://www.tsingfun.com/it/cpp/1964.html 

c/c++如何获取CPU的序列号? - C/C++ - 清泛网 - 专注C/C++及内核技术

...d mov dword ptr vendor_id,ebx mov dword ptr vendor_id[+4],edx mov dword ptr vendor_id[+8],ecx } __asm{ mov eax,01h xor edx,edx cpuid mov s1,edx mov s2,eax } st1 = s1+s2; __asm{ mov eax,03h xor ecx,ecx xor edx,e...
https://www.tsingfun.com/it/cpp/2034.html 

Linux编程中各种头文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

...string.h 提供比如 bzero,bcopy,bcmp,memset,memcpy memcmp 等函数。 4.netdb.h定义了与网络有关的结构,变量类型,宏,函数。例如: struct hostent *gethostbyaddr(const void *addr, size_t len, int type); struct hostent *gethostbyname(const char *name); sys/types.h...
https://www.tsingfun.com/it/cpp/2046.html 

XP风格按钮的实现 - C/C++ - 清泛网 - 专注C/C++及内核技术

...到工程中; 3.在CTestDlg.h添加头文件 #include "XPButton.h"; 4.关闭工程,将工程目录下的.clw文件删除,重新打开工程,为对话框添加一个按钮。通过类向导为此按钮控件添加一个变量,变量类型选择CXPButton; (在此步骤中如果不...
https://www.tsingfun.com/it/cpp/2054.html 

C++ ADO Excel中RecordSet.Open打开记录的两个参数adOpenKeyset、adLockBat...

...动作,其他用户可以对数据进行增、删、改操作。 4 adLockBatchOptimistic 当数据源正在更新时,其他用户必须将CursorLocation改为adUdeClientBatch才能对数据进行增、删、改的操作。 默认值 0 adOpenForwardOnly 使用...
https://www.tsingfun.com/it/cpp/2080.html 

什么是 Ringbuffer ? - C/C++ - 清泛网 - 专注C/C++及内核技术

...:如下图右边的图片表示序号,这个序号指向数组的索引4的位置。) 随着你不停地填充这个buffer(可能也会有相应的读取),这个序号会一直增长,直到绕过这个环。 要找到数组中当前序号指向的元素,可以通过mod操作:...
https://www.tsingfun.com/it/cpp/2093.html 

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

... '\n'; return *this; } //main中处理 myScreen.display(cout).move(4,0).set('#').display(cout); 解决办法:通过返回调用函数的对象的引用,可以将一些操作链接起来简化代码书写。 这里要注意,display函数返回的是const引用,因此在调用move...
https://www.tsingfun.com/it/cpp/2098.html 

...VC\\INCLUDE\\iterator(93) : error C2039: “push_front”: 不是“std...

... [ _Ty=int ] 错误代码: int ia[] = {1,5,3,3,4}; const int array_size = sizeof(ia)/sizeof(*ia); list<int> ilist(ia,ia+array_size); vector<int> temp; copy(ilist.begin(),ilist.end(), front_inserter(temp));//使用push_front插入,导致错误 解决办法: 迭代器...
https://www.tsingfun.com/it/cpp/2133.html 

给VC/SDK中的应用程序加上皮肤(实例演示) - C/C++ - 清泛网 - 专注C/C++及内核技术

... CW_USEDEFAULT, NULL, NULL, hInstance, NULL) ; 4、在销毁窗口之前卸载皮肤文件 case WM_DESTROY : SkinH_Detach();//这句是核心 PostQuitMessage (0) ; return 0 ; 5、若文件想单独拿走运行,需拷贝文件:SkinH.dll...
https://www.tsingfun.com/it/cpp/2171.html 

VS Debug调试模式下内存泄露检测原理 - C/C++ - 清泛网 - 专注C/C++及内核技术

...中,内存块号也就是内存在第几次中分配,如下所示的{354}就是内存块号。 Detected memory leaks! Dumping objects -> d:\local\project\test.cpp(278) : {354} normal block at 0x003FDAB8, 44 bytes long. Data: < P- P- > 80 00 E4 00 50 2D E5 00 50 2D E5 00 CD CD CD CD...