大约有 20,000 项符合查询结果(耗时:0.0212秒) [XML]
WinMian和 main的区别 - C/C++ - 清泛网 - 专注C/C++及内核技术
WinMian和 main的区别main是控制台程序下的入口函数,WinMain是Win32程序的入口函数。它们在底层是走的不同的分支,所以调不同的函数,函数名是固定的,且大小写敏感。main是控制台程序下的入口函数,WinMain是Win32程序的入口函数...
warning C4996 - C/C++ - 清泛网 - 专注C/C++及内核技术
warning C4996warning C4996: '_vsnprintf': This function or variable may be unsafe. ......warning C4996: strcpy was declar...warning C4996: '_vsnprintf': This function or variable may be unsafe. ......
warning C4996: strcpy was declared deprecated
出现这样的警告,是因为VC2005之后的版...
shared_ptr指针被赋值后,原指针会引用清零、自动释放。 - C/C++ - 清泛网 ...
shared_ptr指针被赋值后,原指针会引用清零、自动释放。shared_ptr指针被赋值后,原指针会引用清零、自动释放。std::shared_ptr<int> intg;void foo(std::shared_ptr<int> p){ ...shared_ptr指针被赋值后,原指针会引用清零、自动释放。
std::sh...
const char *, char const *, char * const 异同?const修饰符各位置有何区...
const char *, char const *, char * const 异同?const修饰符各位置有何区别?const char * p = new char('a'); 这个是常字符,即p的内容不能被修改。char const * p 意义同上,没有区别。 这时,*...const char * p = new char('a'); 这个是常字符,即p的内容...
error LNK2019: 无法解析的外部符号 __imp__PlaySoundW@12,该符号在函数 \...
error LNK2019: 无法解析的外部符号 __imp__PlaySoundW@12,该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用#include <mmsystem.h>#pragma comment(lib, "WINMM.LIB")
#include <mmsystem.h>
#pragma comm...
c++ boost库 序列化与反序列化 - C/C++ - 清泛网 - 专注C/C++及内核技术
c++ boost库 序列化与反序列化1、定义类 结构体序列化函数:template <typename Archive>void serialize(Archive& ar, TOrder & obj, const unsigned int ver...1、定义类/结构体序列化函数:
template <typename Archive>
void serialize(Archive& ar, TOrder & obj, const unsign...
vc/mfc *通配符 批量删除文件 - C/C++ - 清泛网 - 专注C/C++及内核技术
vc/mfc *通配符 批量删除文件直接上代码,可直接运行亲测有效,使用SHFileOperation函数:#include "stdafx.h"#include <windows.h>int _tmain(int argc, _TCHAR*...直接上代码,可直接运行亲测有效,使用SHFileOperation函数:
#include "stdafx.h"
#include <win...
SHFileOperation 这个API函数怎么用起来结果飘忽不定? - C/C++ - 清泛网 -...
SHFileOperation 这个API函数怎么用起来结果飘忽不定?SHFileOperation方法有时不起作用,用起来结果飘忽不定,路径末尾加上' 0'也一样,笔者亲测,删除有时成功有时失败。解决:改用C++...SHFileOperation方法有时不起作用,用起来结果...
std::vector排序 - C/C++ - 清泛网 - 专注C/C++及内核技术
std::vector排序若vector内容进行过比较运算符重载(如int, std::string等),则直接sort:std::sort(vecTest.begin(), vecTest.end())默认升序。其他情...若vector内容进行过比较运算符重载(如int, std::string等),则直接sort:
std::sort(vecTest.begin(), ve...
VC/Linux C++ 递归访问目录下所有文件 - C/C++ - 清泛网 - 专注C/C++及内核技术
VC/Linux C++ 递归访问目录下所有文件VC函数,部分代码如下:find(char * lpPath){ char szFind[MAX_PATH]; WIN32_FIND_DATA FindFileData; strcpy(sz...VC函数,部分代码如下:
find(char * lpPath)
{
char szFind[MAX_PATH];
WIN32_FIND_DATA FindFileData;
...