代码拉取完成,页面将自动刷新
This is all my learning of cpp
#define BUF_SIZE 1024 // 宏定义全部大写,下划线分隔
constexpr ARRAY_LEN 265 // 常量全部大写,用下划线分隔
/*
变量命名要有意义
变量名尽量不缩写
作用域越大, 名字可以越长
*/
// 注释对齐
char* my_name = nullptr; // 变量全部小写用下划线分隔
int g_flag; // 全局变量 g_xxx
class FileManage // 类名大驼峰
{ // 函数名一般用动宾,变量名一般用名词
privite:
string m_name; // 成员变量 m_xxx
public:
bool isFind; // 布尔变量应写成谓词
static string s_name; // 静态变量 s_xxx
string getName(); // 小驼峰
bool isExsit();
}
g++ --share ai.cpp -o ai.dll
#或者
g++ -shared ai.cpp -o ai.dll
g++ --share ai.cpp -fPIC -o ai.so
#或者
g++ -shared ai.cpp -fPIC -o ai.so
g++ ai.dll demo.cpp -o demo.exe
Folder PATH listing
Volume serial number is B45F-1DFD
D:.
├───.vscode
├───lang
│ ├───basic
│ ├───brain_fuck
│ ├───file_exception
│ ├───functional
│ ├───math
│ ├───my_class
│ │ ├───Mystring
│ │ ├───String
│ │ └───vector
│ ├───recursive
│ ├───skill
│ └───stl_templet
├───mds
├───spy_control_system
├───Test
├───txt
├───_01_Algorithms
│ ├───backtracking
│ ├───bit_manipulation
│ ├───ciphers
│ ├───data_structures
│ │ └───cll
│ ├───dynamic_programming
│ ├───geometry
│ ├───graph
│ ├───graphics
│ ├───greedy_algorithms
│ ├───hashing
│ ├───linear_algebra
│ ├───machine_learning
│ ├───math
│ ├───numerical_methods
│ ├───operations_on_datastructures
│ ├───others
│ ├───probability
│ ├───range_queries
│ ├───search
│ ├───sorting
│ └───strings
└───_02_Date_Structure
├───1-LinearList
│ ├───list
│ │ ├───array_list
│ │ └───linked_list
│ ├───matrix
│ ├───queue
│ └───stack
├───2-String
├───3-Tree
├───4-Graph
└───7-Design
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。