Skip to content

Commit ba0a8e8

Browse files
committed
Updated to Chapter 5, Section 6
1 parent fd5988a commit ba0a8e8

21 files changed

+702
-57
lines changed

Structure.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -370,28 +370,26 @@
370370

371371
另外值得强调的是输入流的问题,键盘行为和输入的字符有什么关系,`cin`如何解析这些字符。
372372

373-
### 指针数组和数组指针
373+
### 指针与数组的复合类型
374+
375+
#### 二维数组
376+
377+
相当于批量定义数组。
378+
379+
如何理解语法?
374380

375381
#### 指针数组
376382

377383
相当于批量定义指针。
378384

379385
如何理解语法(尤其是和数组指针共同出现时,极易混淆)?
380386

381-
#### 数组指针
387+
#### 指向数组的指针
382388

383389
指针可以指向普通数据,当然也能指向数组!
384390

385391
如何理解语法?
386392

387-
### 高维数组和高阶指针
388-
389-
#### 二维数组
390-
391-
相当于批量定义数组。
392-
393-
如何理解语法?
394-
395393
#### 二阶指针
396394

397395
指针一经定义,就需要存储值,当然也就有了地址。

generalized_parts/05_composite_types_and_their_use/06_combination_of_pointers_and_arrays.tex

Lines changed: 195 additions & 0 deletions
Large diffs are not rendered by default.

generalized_parts/05_composite_types_and_their_use/06_array_of_pointer_and_pointer_to_array.tex renamed to generalized_parts/05_composite_types_and_their_use/07_dynamic_memory_allocation.tex

File renamed without changes.

generalized_parts/05_composite_types_and_their_use/07_multidimensional_arrays_and_higher_order_pointers.tex

Whitespace-only changes.

generalized_parts/05_composite_types_and_their_use/08_dynamic_memory_allocation.tex

Whitespace-only changes.

generalized_parts/05_compound_types_and_their_use.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ \chapter{复合类型及其使用}
88
\import{05_composite_types_and_their_use/}{03_lvalue_reference_and_passing_arguments.tex}
99
\import{05_composite_types_and_their_use/}{04_one_dimensional_arrays.tex}
1010
\import{05_composite_types_and_their_use/}{05_string_with_arrays.tex}
11-
\import{05_composite_types_and_their_use/}{06_array_of_pointer_and_pointer_to_array.tex}
12-
\import{05_composite_types_and_their_use/}{07_multidimensional_arrays_and_higher_order_pointers.tex}
13-
\import{05_composite_types_and_their_use/}{08_dynamic_memory_allocation.tex}
11+
\import{05_composite_types_and_their_use/}{06_combination_of_pointers_and_arrays.tex}
12+
\import{05_composite_types_and_their_use/}{07_dynamic_memory_allocation.tex}
85.3 KB
Loading
102 KB
Loading
49.4 KB
Loading
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<mxfile host="Electron" modified="2024-01-02T10:45:13.173Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.1.16 Chrome/120.0.6099.109 Electron/28.1.0 Safari/537.36" etag="fV4RFwEocRuJ2y8_uYcB" version="22.1.16" type="device">
2+
<diagram name="Page-1" id="3FU2BRUodX3esNhyQgwJ">
3+
<mxGraphModel dx="977" dy="671" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
4+
<root>
5+
<mxCell id="0" />
6+
<mxCell id="1" parent="0" />
7+
<mxCell id="FEGtML5SbePRzF_W_EjW-7" value="内存 Memory" style="swimlane;whiteSpace=wrap;html=1;startSize=30;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
8+
<mxGeometry x="330" y="170" width="160" height="312" as="geometry" />
9+
</mxCell>
10+
<mxCell id="FEGtML5SbePRzF_W_EjW-21" value="... ..." style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
11+
<mxGeometry x="1" y="291" width="158" height="20" as="geometry" />
12+
</mxCell>
13+
<mxCell id="8TEMe9xLt-exDmK_KVjd-13" value="... ..." style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
14+
<mxGeometry x="1" y="291" width="158" height="20" as="geometry" />
15+
</mxCell>
16+
<mxCell id="8TEMe9xLt-exDmK_KVjd-12" value="0x7ffe273d4684" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
17+
<mxGeometry x="1" y="271" width="158" height="20" as="geometry" />
18+
</mxCell>
19+
<mxCell id="8TEMe9xLt-exDmK_KVjd-11" value="0x7ffe273d4685" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
20+
<mxGeometry x="1" y="251" width="158" height="20" as="geometry" />
21+
</mxCell>
22+
<mxCell id="8TEMe9xLt-exDmK_KVjd-10" value="0x7ffe273d4686" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
23+
<mxGeometry x="1" y="231" width="158" height="20" as="geometry" />
24+
</mxCell>
25+
<mxCell id="8TEMe9xLt-exDmK_KVjd-9" value="0x7ffe273d4687" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
26+
<mxGeometry x="1" y="211" width="158" height="20" as="geometry" />
27+
</mxCell>
28+
<mxCell id="8TEMe9xLt-exDmK_KVjd-8" value="0x7ffe273d4688" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
29+
<mxGeometry x="1" y="191" width="158" height="20" as="geometry" />
30+
</mxCell>
31+
<mxCell id="8TEMe9xLt-exDmK_KVjd-7" value="0x7ffe273d4689" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
32+
<mxGeometry x="1" y="171" width="158" height="20" as="geometry" />
33+
</mxCell>
34+
<mxCell id="8TEMe9xLt-exDmK_KVjd-6" value="0x7ffe273d468a" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
35+
<mxGeometry x="1" y="151" width="158" height="20" as="geometry" />
36+
</mxCell>
37+
<mxCell id="8TEMe9xLt-exDmK_KVjd-5" value="0x7ffe273d468b" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
38+
<mxGeometry x="1" y="131" width="158" height="20" as="geometry" />
39+
</mxCell>
40+
<mxCell id="8TEMe9xLt-exDmK_KVjd-4" value="0x7ffe273d468c" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
41+
<mxGeometry x="1" y="111" width="158" height="20" as="geometry" />
42+
</mxCell>
43+
<mxCell id="8TEMe9xLt-exDmK_KVjd-3" value="0x7ffe273d468d" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
44+
<mxGeometry x="1" y="91" width="158" height="20" as="geometry" />
45+
</mxCell>
46+
<mxCell id="8TEMe9xLt-exDmK_KVjd-2" value="0x7ffe273d468e" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
47+
<mxGeometry x="1" y="71" width="158" height="20" as="geometry" />
48+
</mxCell>
49+
<mxCell id="8TEMe9xLt-exDmK_KVjd-1" value="0x7ffe273d468f" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
50+
<mxGeometry x="1" y="51" width="158" height="20" as="geometry" />
51+
</mxCell>
52+
<mxCell id="FEGtML5SbePRzF_W_EjW-19" value="... ..." style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" parent="FEGtML5SbePRzF_W_EjW-7" vertex="1">
53+
<mxGeometry x="1" y="31" width="158" height="20" as="geometry" />
54+
</mxCell>
55+
<mxCell id="8TEMe9xLt-exDmK_KVjd-49" value="" style="shape=curlyBracket;whiteSpace=wrap;html=1;rounded=1;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;" parent="1" vertex="1">
56+
<mxGeometry x="300" y="380" width="30" height="80" as="geometry" />
57+
</mxCell>
58+
<mxCell id="8TEMe9xLt-exDmK_KVjd-51" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="8TEMe9xLt-exDmK_KVjd-52" target="8TEMe9xLt-exDmK_KVjd-12" edge="1">
59+
<mxGeometry relative="1" as="geometry">
60+
<mxPoint x="321" y="459" as="targetPoint" />
61+
</mxGeometry>
62+
</mxCell>
63+
<mxCell id="8TEMe9xLt-exDmK_KVjd-52" value="&lt;font face=&quot;consolas&quot;&gt;pf&lt;/font&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
64+
<mxGeometry x="285" y="436" width="20" height="30" as="geometry" />
65+
</mxCell>
66+
<mxCell id="8TEMe9xLt-exDmK_KVjd-74" value="&lt;font face=&quot;consolas&quot;&gt;a&lt;/font&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
67+
<mxGeometry x="290" y="405" width="10" height="30" as="geometry" />
68+
</mxCell>
69+
<mxCell id="8TEMe9xLt-exDmK_KVjd-75" value="&lt;font face=&quot;consolas&quot;&gt;b&lt;/font&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
70+
<mxGeometry x="290" y="325" width="10" height="30" as="geometry" />
71+
</mxCell>
72+
<mxCell id="8TEMe9xLt-exDmK_KVjd-76" value="" style="shape=curlyBracket;whiteSpace=wrap;html=1;rounded=1;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;" parent="1" vertex="1">
73+
<mxGeometry x="300" y="300" width="30" height="80" as="geometry" />
74+
</mxCell>
75+
<mxCell id="8TEMe9xLt-exDmK_KVjd-77" value="&lt;font face=&quot;consolas&quot;&gt;c&lt;/font&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
76+
<mxGeometry x="290" y="245" width="10" height="30" as="geometry" />
77+
</mxCell>
78+
<mxCell id="8TEMe9xLt-exDmK_KVjd-78" value="" style="shape=curlyBracket;whiteSpace=wrap;html=1;rounded=1;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;" parent="1" vertex="1">
79+
<mxGeometry x="300" y="220" width="30" height="80" as="geometry" />
80+
</mxCell>
81+
</root>
82+
</mxGraphModel>
83+
</diagram>
84+
</mxfile>

0 commit comments

Comments
 (0)