![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
止。。
这个作者很懒,什么都没留下…
展开
-
c++ Makefile的编写
c++ Makefile的编写linux环境准备示例的目录结构示例文件内容makefile 编写执行make运行程序 linux环境准备 初学者推荐:ubuntu/redhat,有图形化界面易操作 示例的目录结构 bin 编译出的可执行文件 include 头文件 lib 静态库 src cpp文件 tmp 临时文件 示例文件内容 makefile 编写 执行make 运行程序 ...原创 2021-08-17 17:52:34 · 290 阅读 · 0 评论 -
c++字符串分割
源码奉上: void splitStr(const string& origStr, const char sepCh, vector<string>& array, const bool bSupportBracket = false); void splitStr(const string& origStr, const char sepCh, vector<string>& array, const bool bSupportBracket) {原创 2021-08-06 16:39:33 · 72 阅读 · 0 评论 -
c++ 模板
.h 文件 #ifndef COMMONFUNCTION_H #define COMMONFUNCTION_H #include <fstream.h> #include <iostream> #include <string> #include <ctime> using namespace std; extern const unsigned int SITE_NUMBER; /****************************SITE_INIT*原创 2021-06-10 15:25:49 · 64 阅读 · 0 评论 -
c++ 常用数据处理函数
.h 文件 /* * commonfunction.h * * Created on: Sep 2, 2019 * Author: huanglei */ #ifndef COMMONFUNCTION_H #define COMMONFUNCTION_H using namespace std; long long String_Binary_to_Int(string String_Binary); string Int_to_String(int n); int charToIn原创 2021-06-10 15:20:11 · 159 阅读 · 0 评论 -
c++ code time代码时汇总
.h 文件 /* * commonfunction.h * * Created on: Sep 2, 2019 * Author: huanglei */ #ifndef COMMONFUNCTION_H #define COMMONFUNCTION_H using namespace std; extern map<string, timespec> timerMap; void start(const string& name); double stop(原创 2021-06-10 15:06:57 · 308 阅读 · 0 评论 -
c++关键字
asm 用于语法: asm-definition: asm ( string-literal ) ;意义由实现定义,典型实现中传输其中的字符串给汇编器。 typedef 用以给数据类型取别名。字面名义上是定义,实际只是声明——这点和C语言的说法不同。C++11中可被using新增的用法代替。 auto auto的含义改变为自动通过初值符推断声明的类型占位符。如声明auto i = 1;,au...原创 2019-04-23 14:31:19 · 125 阅读 · 0 评论 -
c++多态,数据抽象,数据封装,接口(抽象类)总结(简略)
C++多态: 多态意味着调用成员函数时,会根据调用函数的对象的类型来执行不同的函数。每个子类都有一个函数的独立实现。这就是多态的一般使用方式。有了多态,您可以有多个不同的类,都带有同一个名称但具有不同实现的函数,函数的参数甚至可以是相同的。 虚函数 是在基类中使用关键字 virtual 声明的函数。在派生类中重新定义基类中定义的虚函数时,会告诉编译器不要静态链接到该函数。我们想要的是在程序中任意点...原创 2019-04-23 16:05:06 · 240 阅读 · 0 评论 -
c++文件操作(输入,输出,查找,清除)
#include <iostream> #include<fstream> #include<string> #include <algorithm> using namespace std; int GetLineNumber(char file[],char data[],int number)//文本的总行数 { int line=0;...原创 2019-04-29 16:41:40 · 2038 阅读 · 0 评论