大约有 800 项符合查询结果(耗时:0.0060秒) [XML]

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

C语言判断文件是否存在 - C/C++ - 清泛网 - 专注C/C++及内核技术

C语言判断文件是否存在用函数access,文件是io.h,原型:int access(const char *filename, int amode);amode参数为0时表示检查文件的存在性,如果文件存...用函数access,文件是io.h,原型: int access(const char *filename, int amode); amode参数为0...
https://www.tsingfun.com/it/cpp/1197.html 

cmake与autoconf+automake的对比 - C/C++ - 清泛网 - 专注C/C++及内核技术

...就可以、autoconfig的配置文件Makefile.am我们需要自己手工从编写; cmake的配置文件CMakeLists.txt需要手工编写,当然cmake提供了gui的配置工具供大家使用; 我们再看看他们配置文件的内容吧,这是我们的比较的重点,因为这是我...
https://www.tsingfun.com/it/cpp/1483.html 

stdbool.h C99标准杂谈 - C/C++ - 清泛网 - 专注C/C++及内核技术

stdbool.h C99标准杂谈include <stdbool.h> 找不到文件???bool 是C++中的关键字,C中不支持所以C99标准中引入了文件 stdbool.h,包含了四个用于布尔型...include <stdbool.h> 找不到文件??? bool 是C++中的关键字,C中不支持 所以C99...
https://www.tsingfun.com/it/cpp/1529.html 

ThreadXxx.h:100: error: ‘pthread_t’ was not declared in this scope -...

...xx.h:100: error: ‘pthread_t’ was not declared in this scopepthread_t在文件 usr include bits pthreadtypes.h中定义:typedef unsigned long int pthread_t;它是一个线程的标识符。#include <pthread.h> 解决。pthread_t在文件/usr/include/bits/pthreadtypes.h中定义: type...
https://www.tsingfun.com/it/cpp/1532.html 

ThreadXxx.cc:100: error: ‘::pthread_kill’ has not been declared - C/...

ThreadXxx.cc:100: error: ‘::pthread_kill’ has not been declared#include <pthread.h>#include <signal.h>除了pthread.h外,还要引入signal.h文件才行,解决。#include <pthread.h> #include <signal.h> 除了pthread.h外,还要引入signal.h文件才行,解决。pthread_kill
https://www.tsingfun.com/it/cpp/1700.html 

为什么编译好的libcurl静态lib用不了? - C/C++ - 清泛网 - 专注C/C++及内核技术

...这个静态lib的时候,就会提示link2001未定义的外部符号,文件、lib文件均已正常导入。解决 编译Dll能用,但如上图编译静态成静态lib,使用这个静态lib的时候,就会提示link2001未定义的外部符号,文件、lib文件均已正常...
https://www.tsingfun.com/it/cpp/1902.html 

c++文件流基本用法(ifstream, ostream,fstream) - C/C++ - 清泛网 - 专注C/C++及内核技术

c++文件流基本用法(ifstream, ostream,fstream)需要包含的文件: <fstream>名字空间: stdfstream提供了三个类,用来实现c++对文件的操作。(文件的创建,读写)。ifstream -- 从已...需要包含的文件: <fstream>,名字空间: std。 fstream提供...
https://www.tsingfun.com/it/cpp/2133.html 

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

...为了方便我直接把皮肤文件放到了一个文件夹中,在包含文件的时候注意相应的路径就OK。 2、在工程中引入 .h 文件及 Lib 静态库,大家在引用的时候要注意文件的路径; #include "SkinH.h" #pragma comment(lib,"SkinH.lib") 3、在创...
https://www.tsingfun.com/it/cpp/2136.html 

C++ 通过主机名/域名获取IP - C/C++ - 清泛网 - 专注C/C++及内核技术

...++ 通过主机名/域名获取IP代码如下:#include <winsock2.h> 该文件定义了Socket编程的功能 #pragma comment(lib,"ws2_32.lib") 连接ws2_32.lib库...代码如下: #include <winsock2.h> //该文件定义了Socket编程的功能 #pragma comment(lib,"ws2_32.lib") ...
https://www.tsingfun.com/it/cpp/c_offset_of.html 

c/c++取结构体指定成员的偏移,及原理解析 - C/C++ - 清泛网 - 专注C/C++及内核技术

...原理解析c_offset_of可以使用std标准函数 offsetof(),在stddef h文件中,实现原理如下(模拟系统的实现): define MY_STRUCT_OFFSET(s, m) ((size_t)(& ((s*)0)->m ))原理如下:1、0即空指 可以使用std标准函数 offsetof(),在stddef.h文件中,实现...