File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ C++ 提供了多种数据类型,包括基本数据类型、复合数据类型
66
77C++ 的基本数据类型分为 "五类",分别是` 整数型 ` 、` 浮点型 ` 、` 字符型 ` 、` 布尔型 ` 、` 空类型 ` 。它们在各自对应的应用场景中都有着不可或缺的重要性,接下来对这些数据类型进行逐步的学习。
88
9- ### 整数型
9+ ## 整数型
1010
1111整数型可以理解为在内存中开辟一个专门用于存储数字的空间,根据要存放的数字大小可以采用不同的整数型关键字来开辟所需大小的空间。
1212
@@ -58,7 +58,7 @@ int main()
5858注意整数型的数据类型只能够用来存储整数,如果用来存储例如: `3.1415` 或 `a` 这种数据则同样会出现错误!!!
5959```
6060
61- ### 浮点型
61+ ## 浮点型
6262
6363对于一些需要存储小数的场景下我们需要使用浮点数据类型来存储小数,浮点型有三位管理员分别是: ` float ` 、` double ` 、` long double ` 。
6464
@@ -93,7 +93,7 @@ int main() {
9393浮点类型在计算机中的表示有时会导致出现精度问题,因此在需要进行精确计算的场景(如金融计算)中,应该考虑使用专门的库而不是浮点类型。
9494```
9595
96- ### 字符型
96+ ## 字符型
9797
9898字符型是一个用于存储各种文本字符的数据类型例如: ` 1234567890 ` 或 ` abcdefghijklmnopqrstuvwxyz ` 又或者是大写的 ` ABCDEFGHIJKLMNOPQRSTUVWXYZ ` ,这些字符都可以使用此数据类型进行存储。
9999
@@ -123,7 +123,7 @@ int main() {
123123}
124124```
125125
126- ### 布尔型
126+ ## 布尔型
127127
128128布尔型也可以称之为逻辑型,这个数据类型只有一个类型名 ` bool ` ,它只能存储 "` true ` " / "` false ` " 两个值。布尔型常用于需要进行逻辑判断的场景,例如校验是否正确 ` true ` (正确) 或 ` false ` (不正确)。
129129
@@ -148,7 +148,7 @@ int main() {
148148}
149149```
150150
151- ### 空类型
151+ ## 空类型
152152
153153空类型代表着没有类型,使用场景通常是表示函数没有返回值或者函数不需要接收参数。
154154
Original file line number Diff line number Diff line change 5959 'content.css' ,
6060]
6161
62+ latex_additional_files = ['_static/Cover.png' ]
6263latex_engine = 'xelatex'
6364latex_elements = {
6465 'papersize' : 'a4paper' ,
7778\setlength{\cftchapnumwidth}{0.75cm}
7879\setlength{\cftsecindent}{\cftchapnumwidth}
7980\setlength{\cftsecnumwidth}{1.25cm}
81+ \usepackage{graphicx}
82+ \usepackage{eso-pic}
83+ ''' ,
84+ 'maketitle' : r'''
85+ \newgeometry{margin=0pt}
86+ \begin{titlepage}
87+ \thispagestyle{empty}
88+ \centering
89+ \includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{Cover.png}
90+ \end{titlepage}
91+ \restoregeometry
8092''' ,
8193 'sphinxsetup' : 'TitleColor=DarkGoldenrod' ,
8294 'fncychap' : r'\usepackage[Bjornstrup]{fncychap}' ,
You can’t perform that action at this time.
0 commit comments