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

https://bbs.tsingfun.com/thread-857-1-1.html 

error LNK2019: 无法解析的外部符号_socket,该符号在函数 中被引用 - c++1...

1>NetClient.obj : error LNK2019: 无法解析的外部符号 _closesocket@4,该符号在函数 _main 中被引用 1>NetClient.obj : error LNK2019: 无法解析的外部符号 _inet_ntoa@4,该符号在函数 _main 中被引用 1>NetClient.obj : error LNK2019: 无法解析的外部符...
https://bbs.tsingfun.com/thread-855-1-1.html 

register int i;的含义 - c++1y / stl - 清泛IT社区,为创新赋能!

register声明的作用是为了提高效率。 它明确要求CPU把变量始终保存在寄存器里面,直至它消亡。 不过现代编译器都很厉害,根本不需要你多此一举。 所以根本就极少用。大多数情况下,你声明了也没有用,因为编译器不会...
https://bbs.tsingfun.com/thread-827-1-1.html 

error LNK2019: 无法解析的外部符号 _GetFileVersionInfoSizeW@8,该符号在...

GetFileVersionInfoSize build时出现link2019 链接错误: #pragma comment(lib, "version") 解决。
https://bbs.tsingfun.com/thread-816-1-1.html 

c++读注册表 - c++1y / stl - 清泛IT社区,为创新赋能!

CString key; key.Format(_T("Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\xxx")); HKEY hKey; LONG rc = RegOpenKey(HKEY_LOCAL_MACHINE, key, &hKey); if (ERROR_SUCCESS == rc) {         WCHAR szBuffer[MAX_PATH];        &nbsp...
https://bbs.tsingfun.com/thread-782-1-1.html 

VC/Linux C++ 递归访问目录下所有文件 - c++1y / stl - 清泛IT社区,为创新赋能!

VC函数,部分代码如下:find(char * lpPath) {     char szFind[MAX_PATH];     WIN32_FIND_DATA FindFileData;     strcpy(szFind,lpPath);     strcat(szFind,"\\*.*");     HANDLE hFind=::FindFirstFile(szFind,&FindFileData);   &...
https://bbs.tsingfun.com/thread-744-1-1.html 

warning C4996 - c++1y / stl - 清泛IT社区,为创新赋能!

warning C4996: '_vsnprintf': This function or variable may be unsafe. ......warning C4996: strcpy was declared deprecated出现这样的警告,是因为VC2005之后的版本中认为CRT中的一组函数如果使用不当,可能会产生诸如内存泄露、缓冲区溢出、非法访问等安...
https://bbs.tsingfun.com/thread-706-1-1.html 

error C2275: “size_t”: 将此类型用作表达式非法 - c++1y / stl - 清泛IT...

这个错误是由于C的编译器要求将变量的申明放在一个函数块的头部,而c++没有这样的要求造成的。 解决的办法就是把变量的声明全部放在变量的生存块的开始。 注:VS2013(最新补丁SP4及以上)编译器可以支持此类C语法,...
https://bbs.tsingfun.com/thread-686-1-1.html 

C++构造函数中可不可以调用虚函数? - c++1y / stl - 清泛IT社区,为创新赋能!

不可调用,没定义好,不知分配多少空间。
https://bbs.tsingfun.com/thread-570-1-1.html 

error: ‘uint16_t’ does not name a type - c++1y / stl - 清泛IT社区,为创新赋能!

#include <stdint.h>   解决。/** * @file stdint.h * Copyright 2012, 2013 MinGW.org project * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Softw...
https://bbs.tsingfun.com/thread-569-1-1.html 

XXX.cc:100: error: ‘::strerror’ has not been declared - c++1y / stl - 清泛IT社区,为创新赋能!

#include <string.h>  解决。