Version Control System Anonymous published on 2023-08-13 included in GitData Model The following pseudo code can explain the git data model clearly.
Comparison of Shell Script Execution Modes Anonymous published on 2023-07-27 included in Linux方法概览 1 % echo "echo 'Hello Script'" > script.sh方式1:直接运行可执行文件 1 2 3 % chmod +x script.sh % ./script.sh Hello Script方式2:使用命令 sh 或 bash 1 2 3 4 5 % sh script.sh Hello Script % bash script.sh Hello Script方式3:使用命令 source 或 . 1 2 3 4 5 % source script.sh Hello Script % . ./script.sh Hello Script两种分类方法 是否需要执行权限 只有方式1需要执行权限。这是因为方式1把脚本作为可执行文件,自然需要执行权限,但方式2和方式3都是把脚本作为命令的参数,可以不具备执行权限
C++ Smart Pointer Anonymous published on 2023-06-20 included in C-C++原始指针 要想了解智能指针,就需要首先了解原始指针的痛点,原始指针有几点问题
Lvalues and Rvalues Anonymous published on 2023-06-19 included in C-C++说明: 本文探讨的是 C++11 以来的值类别基本理解 关于左值和右值,在不对其进行详细的划分时,简单的分类方法包括
C++ Type Conversion Anonymous published on 2023-06-18 included in C-C++普通类型 类类型 对于类类型,编译器只能自动执行一步隐式类型转换.例如从字符串字面值转换为string类型,但是无法继续将string隐式转换为其他类型
C++ Special Class Member Functions Anonymous published on 2023-06-18 included in C-C++RAII Resource Acquisition Is Initialization,资源获取即初始化