大约有 40,000 项符合查询结果(耗时:0.0227秒) [XML]
Nginx与Lua - 更多技术 - 清泛网 - 专注C/C++及内核技术
...<VERSION>.tar.gz
shell> cd LuaJIT-<VERSION>
shell> make
shell> make install
因为安装在缺省路径,所以LuaJIT对应的lib,include均在/usr/local目录里。
shell> export LUAJIT_LIB=/usr/local/lib
shell> export LUAJIT_INC=/usr/local/include/luajit-<VERSION>
下面就可以编译...
[since C++11] std::array的使用 - C/C++ - 清泛网 - 专注C/C++及内核技术
...y<char> as a fix sized c-string.
array<char, 100> str = {0}; // all elements initialized with 0.
char *p = str.data();
strcpy(p, "hello world");
printf("%s\n", p); // hello world
END_TEST;
上面这个例子让我想起了std::string, 它有一个c_str()方法,...
VC窗口刷新InvalidateRect和UpdateWindow - C/C++ - 清泛网 - 专注C/C++及内核技术
...INT messages. If an application processes a WM_PAINT message but does not call BeginPaint or otherwise clear the update region, the application continues to receive WM_PAINT messages as long as the region is not empty. In all cases, an application must clear the update region before returning from t...
内存调试技巧:C 语言最大难点揭秘 - C/C++ - 清泛网 - 专注C/C++及内核技术
...他许多通用语言(如 Java™、Ruby、Haskell、C#、Perl、Smalltalk 等),每种语言都有众多的爱好者和各自的优点。但是,从计算角度来看,每种编程语言优于 C 或 C++ 的主要优点都与便于内存管理密切相关。与内存相关的编程是如...
闲扯Nginx的accept_mutex配置 - 更多技术 - 清泛网 - 专注C/C++及内核技术
...际上Nginx作者Igor Sysoev曾经给过相关的解释:
OS may wake all processes waiting on accept() and select(), this is called thundering herd problem. This is a problem if you have a lot of workers as in Apache (hundreds and more), but this insensible if you have just several workers as ...
自动生成Linux下Makefile全攻略(automake原理) - C/C++ - 清泛网 - 专注C/C++及内核技术
...configure 输出Makefile文件
2、make 输出二进制
3、make install 安装二进制到指定目录
make及make install的规则都需要参照Makefile文件,而Makefile是自动生成的,大家有兴趣可以查看下Makefile,代码很长很复杂。当然我们可以直接在Mak...
vc/mfc *通配符 批量删除文件 - C/C++ - 清泛网 - 专注C/C++及内核技术
...0'也一样,笔者亲测,删除有时成功有时失败。
改用C++的FindNextFile,支持 * 通配符查找文件,核心代码如下:
WIN32_FIND_DATA FindFileData;
char szCurPath[MAX_PATH + 1] = { 0 };
GetCurrentDirectory(MAX_PATH, szCurPath);
CString findFileName;
findFileName....
【解决】模拟器启动失败:ERROR: x86_64 emulation currently requires har...
...SDK\extras\intel\Hardware_Accelerated_Execution_Manager
在线版下载后的目录是:Emulator\from-Android-SDK\extras\intel\Hardware_Accelerated_Execution_Manager
安装:haxm-7.6.5-setup.exe
如果报错,请参考:https://bbs.tsingfun.com/thread-2030-1-1.html
使用App Inventor 2 控制物联网设备/低功耗蓝牙设备(BLE) · App Inventor 2 中文网
...hyay, D., & Sen, J. (2011). Internet of things: Applications and challenges in technology and standardization. Wireless Personal Communications, 58(1), 4969.
[2] Wolber, D., Abelson, H., Spertus, E., & Looney, L. (2011). App Inventor. ” O’Reilly Media, Inc.”.
[3] Macke...
了解 Boost Filesystem Library - C/C++ - 清泛网 - 专注C/C++及内核技术
...即使其他程序在访问同一文件也如此!
unsigned long remove_all(const path& p):此 API 尝试删除路径 p 所引用的文件或目录。与 remove 不同,此函数并不会特殊考虑不为空的目录。此函数是 UNIX rm –rf 命令的 Boost 对等项。
实用工具...