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

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

C/C++ 如何向上取整? - C/C++ - 清泛网 - 专注C/C++内核技术

C/C++ 如何向上取整?一般地,向上取整有两种方法:#include <math.h>int _tmain(int argc, _TCHAR* argv[]){int a = 6, b = 5; ceil函数printf("%d...一般地,向上取整有两种方法: #include <math.h> int _tmain(int argc, _TCHAR* argv[]) { int a = 6, b = 5; //ce...
https://www.tsingfun.com/it/cpp/1951.html 

[完整源码实例] 修改 CListCtrl 的标题栏字体颜色;重绘 CListCtrl 标题栏 ...

[完整源码实例] 修改 CListCtrl 的标题栏字体颜色;重绘 CListCtrl 标题栏如果只需设置标题栏字体的话,无需自绘CHeaderCtrl,部分代码如下:CFont *f = new CFont; f->CreateFont(13, nHeight ...如果只需设置标题栏字体的话,无需自绘CHeaderC...
https://www.tsingfun.com/it/cpp/1960.html 

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

c/c++浮点输出时,不显示小数点后没用的0用%g格式符就可以了。%g用来输出实数,它根据数值的大小,自动选f格式或e格式(选择输出时占宽度较小的一种),且不输出无意义的0。即%g是 用%g格式符就可以了。%g用来输出实数,...
https://www.tsingfun.com/it/cpp/1964.html 

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

c/c++如何获取CPU的序列号?获取CPU序列表的完整实例代码如下:#include "stdafx.h"#include <afx.h>CString GetCpuSerial(){unsigned long st1 = 0;un...获取CPU序列表的完整实例代码如下: #include "stdafx.h" #include <afx.h> CString GetCpuSerial() { unsigne...
https://www.tsingfun.com/it/cpp/1966.html 

[源码实例] c/c++获取网卡mac地址 - C/C++ - 清泛网 - 专注C/C++内核技术

[源码实例] c/c++获取网卡mac地址代码如下:#include "stdafx.h"#include <afx.h>#include < nb30.h > #pragma comment(lib,"netapi32.lib")typedef struct _ASTAT...代码如下: #include "stdafx.h" #include <afx.h> #include < nb30.h > #pragma comment(lib,"netapi32.lib") typedef s...
https://www.tsingfun.com/it/cpp/2025.html 

AfxIsValidAddress 测试内存地址 - C/C++ - 清泛网 - 专注C/C++内核技术

AfxIsValidAddress 测试内存地址Tests any memory address to ensure that it is contained entirely within the program& 39;s memory space 测试任何内存 Tests any memory address to ensure that it is contained entirely within the program's memory space. 测试任何内存地址,以确保它...
https://www.tsingfun.com/it/cpp/2026.html 

c/c++如何判断指针无效?如NULL,0xcccccccc,0xfeeefeee,野指针等 - C/C++ -...

c/c++如何判断指针无效?如NULL,0xcccccccc,0xfeeefeee,野指针等c c++如何判断指针无效?不仅仅是NULL的判断,有时由于指针释放没有赋NULL,指针会变成野指针或诸如0xcccccccc,0xfeeefeee形式的无效指针,...c/c++如何判断指针无效?不仅仅是N...
https://www.tsingfun.com/it/cpp/2033.html 

atol 头文件 - C/C++ - 清泛网 - 专注C/C++内核技术

atol 头文件#include <stdlib>函数名:atol功能: 把字符串转换成长整型数用法: longatol(const char *nptr);程序例:#include <stdlib.h> #includ...#include <stdlib.h> 函数名: atol 功 能: 把字符串转换成长整型数 用 法: long atol(const char *nptr); 实例: ...
https://www.tsingfun.com/it/cpp/2035.html 

error C2440: “初始化”: 无法从“const int”转换为“int &” - C/C++ - ...

error C2440: “初始化”: 无法从“const int”转换为“int &”error C2440: 初始化: 无法从const int转换为int &转换丢失限定符。#include <iostream> int main() { const int...error C2440: “初始化”: 无法从“const int”转换为“int &” 转换丢失限定...
https://www.tsingfun.com/it/cpp/2036.html 

error C2664:...No user-defined-conversion operator available that can ...

error C2664:...No user-defined-conversion operator available that can perform this conversion, or the operator cannot be callederror C2664: '__thiscall std::list<int,class std::allocator<int> >::std::list<int,class std::allocator<int> >(unsigned...error C2664: '__thiscall std::list<int,class std::al...