\ No newline at end of file
diff --git a/docs/.vuepress/dist/article/027o3g1x/index.html b/docs/.vuepress/dist/article/027o3g1x/index.html
index b7e8914..fe91efc 100644
--- a/docs/.vuepress/dist/article/027o3g1x/index.html
+++ b/docs/.vuepress/dist/article/027o3g1x/index.html
@@ -1,4 +1,4 @@
-程序结构和执行
long exchange (long *xo,long y){ long x=*xp; *xp=y; return x;
@@ -8,4 +8,4 @@
3 movq %rsi,(%rdi) 作为对比这里不加括号,因为值就存储在%rsi寄存器中,取%rsi寄存器存储的值,移动到%rdi寄存器值所指向的内存中。4 ret
pushq S 栈指针减少8(指针大小) 将四字压入栈 因为栈是倒过来画的地址由高到低 等价于 subq $8 ,%rsp movq %rbq,(%rsp) popq D 栈指针加8 将四字弹出 等价于 movq (%rsp),%rax addq $8,%rsp
算数操作 leaq S, D D <-&S 把S的地址传送给D INC D D <-D+1 加1 DEC D D <-D-1 减1 NEG 取负 NOR 取补 ADD 加 SUB S,D D<-D+S 减 IMUL 乘 XOR 异或 OR 或 AND 与 SAL S,D D <-D<<k 左移 SHL 左移同上 SAR 算数右移 SHR 逻辑右移
\ No newline at end of file
diff --git a/docs/.vuepress/dist/article/j3qgcpng/index.html b/docs/.vuepress/dist/article/j3qgcpng/index.html
index 2527188..eb59de1 100644
--- a/docs/.vuepress/dist/article/j3qgcpng/index.html
+++ b/docs/.vuepress/dist/article/j3qgcpng/index.html
@@ -1,4 +1,4 @@
-c++编程语言第四版
When we talk about portability of C++ programs, we usually mean portability of source code; that is, the source code can be successfully compiled and run on a variety of systems
The ISO C++ standard defines two kinds of entities: • Core language features, such as built-in types (e.g., char and int) and loops (e.g., for-statements and while-statements) • Standard-library components, such as containers (e.g., vector and map) and I/O operations (e.g., << and getline())
C++ is a statically typed language. That is, the type of every entity (e.g., object, value, name, and expression) must be known to the compiler at its point of use. The type of an object determines the set of operations applicable to it
Every C++ program must have exactly one global function named main(). The program starts by executing that function. The int value returned by main(), if any, is the program’s return value to "the system." If no value is returned, the system will receive a value indicating successful completion.
Every name and every expression has a type that determines the operations that may be performed on it A declaration is a statement that introduces a name into the program. It specifies a type for the named entity: • A type defines a set of possible values and a set of operations (for an object). • An object is some memory that holds a value of some type. • A value is a set of bits interpreted according to a type. • A variable is a named object
A char variable is of the natural size to hold a character on a given machine (typically an 8-bit byte), and the sizes of other types are quoted in multiples of the size of a char. The size of a type is implementation-defined (i.e., it can vary among different machines) and can be obtained by the sizeof operator; for example, sizeof(char) equals 1 and sizeof(int) is often 4
When we talk about portability of C++ programs, we usually mean portability of source code; that is, the source code can be successfully compiled and run on a variety of systems
The ISO C++ standard defines two kinds of entities: • Core language features, such as built-in types (e.g., char and int) and loops (e.g., for-statements and while-statements) • Standard-library components, such as containers (e.g., vector and map) and I/O operations (e.g., << and getline())
C++ is a statically typed language. That is, the type of every entity (e.g., object, value, name, and expression) must be known to the compiler at its point of use. The type of an object determines the set of operations applicable to it
Every C++ program must have exactly one global function named main(). The program starts by executing that function. The int value returned by main(), if any, is the program’s return value to "the system." If no value is returned, the system will receive a value indicating successful completion.
Every name and every expression has a type that determines the operations that may be performed on it A declaration is a statement that introduces a name into the program. It specifies a type for the named entity: • A type defines a set of possible values and a set of operations (for an object). • An object is some memory that holds a value of some type. • A value is a set of bits interpreted according to a type. • A variable is a named object
A char variable is of the natural size to hold a character on a given machine (typically an 8-bit byte), and the sizes of other types are quoted in multiples of the size of a char. The size of a type is implementation-defined (i.e., it can vary among different machines) and can be obtained by the sizeof operator; for example, sizeof(char) equals 1 and sizeof(int) is often 4
double d = 2.2; //初始化浮点数int i = 7; // 初始化整数d = d+i; // 求和赋值给di=d∗i; // 将产生的值赋值给i(将双精度浮点数截断转换为整型)
C++ offers a variety of notations for expressing initialization, such as the = used above, and a universal form based on curly-brace-delimited initializer lists
简单的说c++提供了花括号初始化器,是得我们在初始化变量时(定义),可以这么写
double d1 = 2.3;
@@ -72,4 +72,4 @@
}}Traffic_light light=Traffic_light::red;
-Traffic_light next = ++light; // next becomes Traffic_light::green;
Often, a function has no way of completing its assigned task after an exception is thrown.Then, "handling"an exception simply means doing some minimal local cleanup and rethrowing the exception
通常函数无法完成分配任务时需要抛出异常,并且处理剩余的清理工作。异常是RAII的关键概念。
静态断言略过。
\ No newline at end of file
+Traffic_light next = ++light; // next becomes Traffic_light::green;
Often, a function has no way of completing its assigned task after an exception is thrown.Then, "handling"an exception simply means doing some minimal local cleanup and rethrowing the exception
通常函数无法完成分配任务时需要抛出异常,并且处理剩余的清理工作。异常是RAII的关键概念。
静态断言略过。
\ No newline at end of file
diff --git a/docs/.vuepress/dist/article/jaovy4gg/index.html b/docs/.vuepress/dist/article/jaovy4gg/index.html
index 72e768e..881e053 100644
--- a/docs/.vuepress/dist/article/jaovy4gg/index.html
+++ b/docs/.vuepress/dist/article/jaovy4gg/index.html
@@ -1,4 +1,4 @@
-搭建vscode-cpp环境
\ No newline at end of file
diff --git a/docs/.vuepress/dist/blog/archives/index.html b/docs/.vuepress/dist/blog/archives/index.html
index d4cfea3..501712c 100644
--- a/docs/.vuepress/dist/blog/archives/index.html
+++ b/docs/.vuepress/dist/blog/archives/index.html
@@ -1 +1 @@
-归档
\ No newline at end of file
diff --git a/docs/.vuepress/dist/blog/categories/index.html b/docs/.vuepress/dist/blog/categories/index.html
index 6fe33bb..6d64db9 100644
--- a/docs/.vuepress/dist/blog/categories/index.html
+++ b/docs/.vuepress/dist/blog/categories/index.html
@@ -1 +1 @@
-分类
\ No newline at end of file
diff --git a/docs/.vuepress/dist/blog/index.html b/docs/.vuepress/dist/blog/index.html
index 8e072fe..8a1d68c 100644
--- a/docs/.vuepress/dist/blog/index.html
+++ b/docs/.vuepress/dist/blog/index.html
@@ -1 +1 @@
-博客
\ No newline at end of file
diff --git a/docs/.vuepress/dist/blog/tags/index.html b/docs/.vuepress/dist/blog/tags/index.html
index f2fc377..fd006cb 100644
--- a/docs/.vuepress/dist/blog/tags/index.html
+++ b/docs/.vuepress/dist/blog/tags/index.html
@@ -1 +1 @@
-标签
\ No newline at end of file
diff --git a/docs/.vuepress/dist/index.html b/docs/.vuepress/dist/index.html
index 2e9bc52..cbd6939 100644
--- a/docs/.vuepress/dist/index.html
+++ b/docs/.vuepress/dist/index.html
@@ -1 +1 @@
-