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

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

libcurl网络连接使用tcp/ip - C/C++ - 清泛网 - 专注C/C++及内核技术

...络连接使用tcp ip,部分代码如下:CURL *curl;CURLcode res;const char *request = "GETas.xxxxE测试发送"; curl_socket_t sockfd; * socket * ...部分代码如下: CURL *curl; CURLcode res; const char *request = "GETas.xxxxE测试发送"; curl_socket_t sockfd; /* socket */ l...
https://www.tsingfun.com/it/cpp/1351.html 

c++ 写日志通用类,可设置日志级别 - C/C++ - 清泛网 - 专注C/C++及内核技术

... Log(int nLevel, LPCSTR func, INT line, LPCTSTR fmt, ...); static const char * const LOGGER_LEVEL_NAME[] = {"崩溃", "错误", "警告", "信息", "详细", "调试"}; static const char * const LOGGER_LEVEL_CODE[] = {"FATAL", "ERROR", "WARN ", "INFO ", "VERBOSE", "DEBUG"}; #define logging(nL...
https://www.tsingfun.com/it/cpp/2033.html 

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

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

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

...中用到Winsock API 函数,都要用到 Ws2_32.lib void GetHostIP(char *szIPAddr) { WSADATA wsaData; char name[155]; //定义用于存放获得主机名的变量 char *ip; //定义IP地址变量 PHOSTENT hostinfo; //调用MAKEWORD()获得Winsocl版本的正确值...
https://www.tsingfun.com/it/cpp/2455.html 

std::stringstream ss; 直接使用ss.str().c_str() 字符串指针可能导致崩溃 ...

....str().c_str() 字符串指针可能导致崩溃std::stringstream ss;const char* ch = ss str() c_str();call_func(ch);这种写法在系统内存不足时,ss会立马释放内存,字符串指针ch可能会非法访问导致崩溃。代码最好的是 std::stringstream ss; const char* ch = ss...
https://www.tsingfun.com/it/tech/1699.html 

boost库编译问题 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...ee::xml_writer_settings<std::string> settings(' t', 1, "GB2312");报错:char不能转换为std::string。1.5...boost::property_tree::xml_writer_settings<std::string> settings('\t', 1, "GB2312"); 报错:char不能转换为std::string。 1.54 版本 报错,改为boost::property_tree::xml_wr...
https://bbs.tsingfun.com/thread-782-1-1.html 

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

VC函数,部分代码如下:find(char * lpPath) { &nbsp; &nbsp; char szFind[MAX_PATH]; &nbsp; &nbsp; WIN32_FIND_DATA FindFileData; &nbsp; &nbsp; strcpy(szFind,lpPath); &nbsp; &nbsp; strcat(szFind,&quot;\\*.*&quot;); &nbsp; &nbsp; HANDLE hFind=::FindFirstFile(szFind,&amp;FindFileData); &nbsp; &...
https://stackoverflow.com/ques... 

How do I find out if first character of a string is a number?

In Java is there a way to find out if first character of a string is a number? 5 Answers ...
https://www.tsingfun.com/it/da... 

REDHAT 6.4 X64下ORACLE 11GR2静默安装 - 数据库(内核) - 清泛网 - 专注C/C++及内核技术

... # # all_langs : All languages # # Specify value as the following to select any of the languages. # Example : SELECTED_LANGUAGES=en,fr,ja # # Specify value as the following to select all the languages. # Example : SELECTED_LANGUAGES=all_langs #---------------------------------------------...
https://stackoverflow.com/ques... 

How do you use the Immediate Window in Visual Studio?

...tMessage() "hello" A very common way to see the value of a method is to select the method name of a class and do a ‘Add Watch’ so that you can see its current value in the Watch window. However, once again, the object needs to be instantiated and in scope for a valid value to be displayed. ...