![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
surayang
The man who has made up his mind to win will never say "Impossible".
展开
-
C++ ConfigParser
运用链表保存所有注解和ini的内容。ConfigParser.h#ifndef linux#pragma once#else#include <string.h>#define _stricmp strcasecmp#endif // linux#include <string>using std::string;typedef struct Options{ string comment; // save option notes. strin原创 2021-04-21 14:09:31 · 442 阅读 · 0 评论 -
更改 windows下控制台 输出的字体颜色
#include <iostream>#include <windows.h> using namespace std; int main(){ int k; for(k=1; k<255; k++) { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), k); cout <<" "<< k <<.原创 2020-12-15 14:04:44 · 2897 阅读 · 0 评论 -
Turbo C
Download URL:https://turboc.me/download-turbo-c-file/Download Turbo C++ for Windows 10, 7, 8 and 8.1Turbo C++ for Windows 10 is the software for composting programs in the C and C++ language. As an IDE, it incorporates a source code editorial manager,.转载 2020-12-03 15:10:29 · 1561 阅读 · 0 评论 -
c++获取文件编码格式
int GetFileEncoding(char* filename){ ifstream fs; char buff[512]; fs.open(filename, ios::binary); if (!fs) { sprintf_s(buff, 512, "%s: Cannot open it.", filename); receive_log(buff); exit(-1); } unsigned char ch = 0x00; int coding = 0; fs..原创 2020-05-14 18:41:23 · 2684 阅读 · 0 评论 -
soap错误码和获取处理错误码的详细信息
gsoap页面:https://www.genivia.com/doc/guide/html/index.htmlsoap客户端用户登录返回值错误代码表(ERROR CODE)SOAP_EOF -1 Unexpected end of file, no input, or timeout while receiving data SOAP_ERR -1 ...原创 2020-04-28 17:32:06 · 4407 阅读 · 0 评论 -
c++ read/write excel
https://readxl.tidyverse.org/index.htmlhttp://brechtsanders.github.io/xlsxio/http://www.pudn.com/Download/item/id/2565378.htmlhttps://www.sourcecodester.com/cc/6088/c-read-and-write-excel-files....原创 2019-12-05 21:23:21 · 422 阅读 · 0 评论 -
CentOS7.5 cannot find file libudev.h
最近在CentOS 7.5 上编译时,缺少libudev.h文件:可以使用以下方法查询rpm包:yum provides */libudev.h然后使用yum install安装。原创 2019-07-03 10:33:46 · 1846 阅读 · 0 评论 -
C/C++如何调用gsoap
下载gsoap:https://sourceforge.net/projects/gsoap2/files/以gsoap-2.8为例。使用gsoap中的soapcpp2 & wsdl2h(gsoap-2.8/gsoap/bin/)生成C/C++代码文件。1. 使用wsdl2h把目标webservice生成头文件。wsdl2h -s -o temp.h http://ip:p...原创 2018-11-29 11:27:17 · 308 阅读 · 0 评论 -
VC++获取某个http网页内容
Windows中VC++获取某个http网页的内容。原创 2015-08-04 13:48:01 · 2006 阅读 · 0 评论 -
Visual Studio中宽字节和多字节相互转换
C++中使用Unicode编码时,宽字节和多字节之间的相互转换。原创 2015-08-04 10:55:16 · 911 阅读 · 0 评论 -
How to run application in Qt as administrator?
how to run application in Qt as administrator?原创 2015-07-21 10:03:37 · 685 阅读 · 0 评论 -
Windos控制台输出0~255内的ASCII码值
例:打印0~255内的ASCII码值#include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ unsigned char a; ::SetConsoleOutputCP(437); cout<<endl; for (int i=0; i<256; i++) {原创 2014-01-10 11:56:18 · 1677 阅读 · 0 评论 -
获取Windows版本信息
在google里搜索“msdn os version”及“获取Windows版本”可得到大量的资料,以下代码就是从网上搜集的资料整理而成(代码在VC++ 2005及VC++ 2005 Express中编译通过):/*****************************************************************************Operating S原创 2014-01-03 10:23:58 · 876 阅读 · 0 评论 -
VC获取文件夹内指定类型的文件名
VC C++获取文件夹内指定类型的文件名#include #include #include #include #include #pragma comment(lib,"shlwapi.lib")using namespace std;void GetFileNameInOneDir(string Path, string Type){_fin原创 2013-05-15 14:12:59 · 869 阅读 · 0 评论 -
C++实现封装链表
C++实现封装链表#include #include using namespace std;template class node //节点{public:T data; node *next;};template class list{public:list(原创 2013-05-15 14:54:12 · 1006 阅读 · 0 评论