-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
337 lines (238 loc) · 16.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<!DOCTYPE html>
<html lang="zh-CN">
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="UTF-8">
<title>Haibarayu's Blog</title>
<meta name="author" content="Wu Yu">
<meta name="version" content="1.0.0">
<meta name="keywords" content>
<meta name="description" content>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<link rel="alternate" href="/atom.xml" title="Haibarayu's Blog" type="application/atom+xml">
<link rel="icon" href="/images/favicon.ico">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<main class="app">
<header class="header clearfix">
<div id="nav" class="nav">
<div class="nav-mobile">
<button id="open-panel" class="open-panel nav-mobile-item"><i class="icon-documents"></i></button>
<h1 class="nav-mobile-title nav-mobile-item">Haibarayu's Blog</h1>
<button id="open-menus" class="open-panel nav-mobile-item"><i class="icon-library"></i></button>
</div>
<nav id="nav-inner" class="nav-inner">
<a class="nav-item active" href="/">
<span class="nav-text">首页</span>
</a>
<a class="nav-item" href="/categories/morning">
<span class="nav-text">清晨</span>
</a>
<a class="nav-item" href="/categories/universe">
<span class="nav-text">宇宙</span>
</a>
<a class="nav-item" href="/tags">
<span class="nav-text">标签</span>
</a>
<a class="nav-item" href="/archives">
<span class="nav-text">归档</span>
</a>
<a class="nav-item" href="/about">
<span class="nav-text">关于</span>
</a>
</nav>
</div>
<aside id="aside" class="aside">
<div id="aside-mask" class="aside-mask"></div>
<div id="aside-inner" class="aside-inner">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"><i class="icon-search-stroke"></i></button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
<div class="author-meta">
<div class="author-avatar">
<a href="/">
<img src="/images/avatar.jpg" title="Haibarayu">
</a>
</div>
<div class="author-name">Haibarayu</div>
<div class="author-work"></div>
<div class="author-location">
<i class="icon-location vm"></i>
<span class="vm">Chongqing, China</span>
</div>
<div class="author-thread-wrap">
<div class="author-threads clearfix">
<a class="thread-item" href="https://github.com/Haibarayu" target="_blank" rel="noopener">
<!-- Generated by IcoMoon.io -->
<svg viewbox="0 0 1024 1024" width="38" height="38" fill="currentColor">
<path d="M512 32.12c-265.004 0-479.88 220.23-479.88 492.090 0 217.446 137.536 401.684 328.202 466.81 23.994 4.498 32.778-10.712 32.778-23.78 0-11.782-0.428-42.632-0.642-83.764-133.466 29.778-161.744-65.984-161.744-65.984-21.852-56.772-53.344-71.982-53.344-71.982-43.49-30.636 3.214-29.992 3.214-29.992 48.202 3.428 73.482 50.772 73.482 50.772 42.846 75.196 112.258 53.558 139.68 40.918 4.284-31.706 16.71-53.558 30.42-65.77-106.474-12.426-218.516-54.63-218.516-243.152 0-53.772 18.638-97.69 49.274-131.966-4.928-12.426-21.424-62.556 4.714-130.252 0 0 40.276-13.282 131.966 50.344 38.348-10.926 79.266-16.282 120.184-16.496 40.704 0.214 81.836 5.57 120.184 16.496 91.692-63.626 131.752-50.344 131.752-50.344 26.136 67.698 9.64 117.828 4.714 130.252 30.636 34.492 49.274 78.408 49.274 131.966 0 188.952-112.258 230.514-219.16 242.724 17.138 15.21 32.564 45.202 32.564 91.048 0 65.77-0.642 118.898-0.642 134.966 0 13.068 8.57 28.492 32.992 23.566 191.094-64.912 328.418-249.152 328.418-466.382 0-271.86-214.874-492.090-479.88-492.090z"/>
</svg>
</a>
<a class="thread-item" href="https://space.bilibili.com/6062160?from=search&seid=9067092246665106765" target="_blank" rel="noopener">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveaspectratio="xMidYMid" width="32" height="34" viewbox="0 0 32 34">
<defs>
<style>
.cls-1 {
fill: #000;
fill-rule: evenodd;
}
</style>
</defs>
<path d="M30.828,30.422 C30.564,30.423 30.297,30.446 30.036,30.418 C29.078,30.314 28.380,31.402 28.048,32.549 C27.749,33.582 26.614,34.110 25.592,34.004 C24.412,33.883 23.631,33.208 23.330,32.141 C23.149,31.496 22.602,30.996 22.000,31.000 C17.847,31.024 14.153,31.012 10.000,31.000 C9.522,30.999 9.012,31.457 8.872,32.020 C8.573,33.228 7.546,33.995 6.409,34.014 C5.232,34.034 4.209,33.287 3.866,32.033 C3.722,31.508 3.479,30.385 2.977,30.413 C2.331,30.449 1.681,30.431 1.033,30.420 C0.325,30.407 0.012,30.123 0.012,29.451 C0.017,22.618 0.027,15.786 0.045,8.953 C0.047,8.247 0.340,8.009 1.154,8.008 C4.491,8.004 7.828,8.006 11.165,8.006 C11.398,8.006 11.631,8.006 11.863,8.006 C11.884,7.949 11.906,7.891 11.927,7.833 C11.152,7.426 10.377,7.019 9.603,6.611 C8.318,5.933 7.031,5.257 5.748,4.576 C5.228,4.300 5.012,3.879 5.306,3.357 C5.603,2.829 6.094,2.797 6.607,3.067 C9.620,4.656 12.634,6.243 15.636,7.849 C16.405,8.261 17.789,8.014 18.284,7.318 C19.819,5.154 21.353,2.990 22.888,0.825 C22.942,0.749 22.994,0.670 23.050,0.595 C23.488,0.007 23.985,-0.152 24.437,0.195 C24.960,0.596 24.870,1.072 24.534,1.549 C23.911,2.432 23.288,3.314 22.666,4.197 C21.804,5.421 20.943,6.646 19.986,8.006 C20.378,8.006 20.629,8.006 20.880,8.006 C24.194,8.006 27.507,8.005 30.820,8.007 C31.832,8.008 31.988,8.161 31.989,9.145 C31.999,15.861 32.008,22.577 32.014,29.293 C32.015,30.253 31.838,30.416 30.828,30.422 ZM25.848,32.431 C26.378,32.396 26.630,30.992 26.791,30.461 C26.102,30.461 25.492,30.461 24.787,30.461 C24.984,31.045 25.257,32.471 25.848,32.431 ZM6.318,32.432 C6.905,32.468 7.182,31.049 7.357,30.466 C6.663,30.466 6.056,30.466 5.383,30.466 C5.517,31.015 5.793,32.400 6.318,32.432 ZM30.000,10.000 C20.412,10.000 11.532,10.000 2.000,10.000 C2.000,16.462 2.000,22.576 2.000,29.000 C11.579,29.000 20.420,29.000 30.000,29.000 C30.000,22.528 30.000,16.432 30.000,10.000 ZM4.000,13.882 C4.002,12.956 4.449,12.051 5.381,12.050 C12.494,12.049 19.041,11.998 26.154,12.000 C27.100,12.000 27.997,12.966 28.000,13.882 C28.012,18.300 27.993,21.700 28.000,26.118 C28.002,27.062 27.146,27.999 26.154,28.000 C22.608,28.002 19.545,28.000 16.000,28.000 C12.455,28.000 9.392,28.002 5.846,28.000 C4.814,27.999 3.999,27.135 4.000,26.118 C4.005,21.722 3.992,18.278 4.000,13.882 ZM26.297,25.981 C26.297,21.804 26.154,17.971 26.154,13.882 C19.290,13.882 12.649,13.882 5.846,13.882 C5.846,18.035 5.822,21.866 5.822,25.981 C12.673,25.981 19.463,25.981 26.297,25.981 ZM11.608,16.318 C11.666,16.292 11.738,16.297 11.980,16.262 C12.121,16.400 12.477,16.590 12.515,16.828 C12.558,17.106 12.409,17.591 12.194,17.700 C10.880,18.367 9.530,18.968 8.177,19.557 C7.765,19.736 7.312,19.601 7.207,19.161 C7.138,18.873 7.262,18.326 7.469,18.222 C8.823,17.537 10.222,16.940 11.608,16.318 ZM12.021,20.776 C12.277,20.767 12.608,21.121 12.793,21.391 C12.941,21.606 12.879,21.950 12.983,22.210 C13.180,22.705 13.551,23.176 14.099,23.060 C14.504,22.975 14.874,22.570 15.178,22.234 C15.328,22.068 15.303,21.740 15.339,21.483 C15.407,20.999 15.693,20.701 16.171,20.713 C16.608,20.724 16.892,20.988 16.948,21.461 C16.984,21.760 16.992,22.131 17.171,22.330 C17.457,22.648 17.869,23.032 18.238,23.044 C18.572,23.055 18.978,22.651 19.241,22.339 C19.416,22.132 19.406,21.766 19.461,21.467 C19.550,20.990 19.826,20.700 20.320,20.738 C20.811,20.776 21.069,21.092 21.050,21.585 C21.003,22.836 20.506,23.853 19.334,24.411 C18.242,24.932 17.222,24.708 16.328,23.907 C16.280,23.864 16.222,23.833 16.162,23.792 C15.890,23.981 15.638,24.200 15.349,24.351 C14.404,24.844 13.458,24.803 12.586,24.197 C11.624,23.527 11.195,22.551 11.281,21.416 C11.299,21.170 11.755,20.785 12.021,20.776 ZM18.997,16.260 C19.229,15.854 19.641,15.743 20.026,15.962 C21.555,16.833 23.067,17.734 24.569,18.648 C24.749,18.757 24.833,19.019 24.896,19.113 C24.913,19.856 24.298,20.260 23.732,19.941 C22.219,19.088 20.731,18.190 19.245,17.289 C18.853,17.051 18.770,16.656 18.997,16.260 Z" class="cls-1"/>
</svg>
</a>
</div>
</div>
<br>
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="280" height="86" src="//music.163.com/outchain/player?type=2&id=1498723813&auto=1&height=66"></iframe>
</div>
</div>
</aside>
</header>
<div id="content" class="content">
<article class="article" itemscope itemprop="blogPost">
<header class="article-header">
<h1 itemprop="name">
<a href="/2023/02/13/Cpp良好习惯养成-1/">C++ 良好习惯养成(1)——头文件</a>
</h1>
<div class="article-meta clearfix">
<a class="article-date" href="http://yoursite.com/index.html">
<i class="icon-calendar"></i>
<time datetime="2023-02-13T11:36:41.000Z" itemprop="datePublished">2023-02-13</time>
</a>
<div class="article-tag-list">
<i class="icon-tag"></i>
<a class="article-tag-link" href="/tags/C/">C++</a>
</div>
</div>
</header>
<section class="article-body markdown-body">
<h2 id="头文件的-include-顺序"><a href="#头文件的-include-顺序" class="headerlink" title="头文件的 #include 顺序"></a>头文件的 #include 顺序</h2><ol>
<li>配对的头文件</li>
<li>项目中的其他头文件</li>
<li>第三方库中的头文件</li>
<li>标准库头文件</li>
</ol>
<h2 id="创建和使用头文件的其他建议"><a href="#创建和使用头文件的其他建议" class="headerlink" title="创建和使用头文件的其他建议"></a>创建和使用头文件的其他建议</h2><ul>
<li>始终包含 header guards。</li>
<li>不要在头文件中定义变量和函数(全局常量除外)。</li>
<li>将头文件命名为与其关联的源代码文件相同的名称。</li>
<li>每个头文件应该有一个特定的工作,并且尽可能独立。</li>
<li>显示包含代码文件中使用的功能需要的头文件。</li>
<li>编写的每个头文件都应该 #include 它需要的每个依赖(都能够自行编译)。</li>
<li>仅 #include 需要的内容。</li>
<li>不要 #include .cpp 文件。
<p class="article-more-link">
<a href="/2023/02/13/Cpp良好习惯养成-1/#more">
<span class="vm">阅读更多</span>
<i class="icon-arrow-double-right vm"></i>
</a>
</p>
</li></ul></section>
</article>
<article class="article" itemscope itemprop="blogPost">
<header class="article-header">
<h1 itemprop="name">
<a href="/2022/10/19/restart/">Restart</a>
</h1>
<div class="article-meta clearfix">
<a class="article-date" href="http://yoursite.com/index.html">
<i class="icon-calendar"></i>
<time datetime="2022-10-19T12:14:39.000Z" itemprop="datePublished">2022-10-19</time>
</a>
<div class="article-tag-list">
<i class="icon-tag"></i>
<a class="article-tag-link" href="/tags/一些/">一些</a>
</div>
</div>
</header>
<section class="article-body markdown-body">
<p>想来想去,三年前的简介还是留下来了,在关于页面里,然后在后面写了新的简介。而其他的这几年来本身也不多的内容几乎都已经删除。对我来说,重启的节点当然不是现在,生活也从来没有停下,裹挟着没有准备的我一路跌跌撞撞地往前走,慢慢地好像也平稳下来,可以有时间喘口气,稍作整顿了。
</p><p class="article-more-link">
<a href="/2022/10/19/restart/#more">
<span class="vm">阅读更多</span>
<i class="icon-arrow-double-right vm"></i>
</a>
</p>
</section>
</article>
<article class="article" itemscope itemprop="blogPost">
<header class="article-header">
<h1 itemprop="name">
<a href="/2019/07/19/楔子/">楔子</a>
</h1>
<div class="article-meta clearfix">
<a class="article-date" href="http://yoursite.com/index.html">
<i class="icon-calendar"></i>
<time datetime="2019-07-19T05:34:05.000Z" itemprop="datePublished">2019-07-19</time>
</a>
<div class="article-tag-list">
<i class="icon-tag"></i>
<a class="article-tag-link" href="/tags/故事/">故事</a>
</div>
</div>
</header>
<section class="article-body markdown-body">
<p>文/莺鸽海<br><br>前言:<br> 这是一个在我心底埋藏了很久的故事,或者说是一个场景。这个故事里有缓缓的波涛,有连绵不绝的雨水,有可以震撼人心的雷鸣,也有落日。星玫说,夕阳是你一定能等到的奇迹,于是我便沉伦在这奇迹里不能自拔。但我一直以来憧憬着的,仍是莺歌海的落日。16年年初的时候,我第一次从三叔的笔下得知这个地名,一个地处海南边缘的小小的渔镇。它构成了我心中的念想,催生了这个故事。我或许能把它写出来,也或许不能。但无论如何,有生之年我都要去到一次莺歌海,如此也已经足够了。<br> 这是一段小小的楔子,虽然只有几百字,我也曾经反复修改过很多次,希望可以把我心中的景色传达给你。以后有写好的部分我也会放在这里,希望故事和我都能有所成长。
</p><p class="article-more-link">
<a href="/2019/07/19/楔子/#more">
<span class="vm">阅读更多</span>
<i class="icon-arrow-double-right vm"></i>
</a>
</p>
</section>
</article>
</div>
<footer class="footer">
<span>Copyright ©2022 Haibarayu</span>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>, Theme by <a href="https://github.com/sanonz/hexo-theme-concise" target="_blank">Concise</a>
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?8d7c5caba03db52468d209cd95ff3314";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</footer>
</main>
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
var nodes = {
nav: $('#nav'),
aside: $('#aside'),
asideInner: $('#aside-inner'),
navInner: $('#nav-inner')
};
var doing = false;
nodes.asideInner.on('webkitAnimationEnd mozAnimationEnd oAnimationEnd oanimationend animationend', function() {
if (nodes.aside.hasClass('mobile-open')) {
nodes.aside.removeClass('mobile-open');
} else {
nodes.aside.removeClass('mobile-close panel-show');
}
doing = false;
});
$('#open-panel, #aside-mask').on('click', function() {
if (doing) {
return;
}
if (nodes.aside.hasClass('panel-show')) {
nodes.aside.addClass('mobile-close');
} else {
nodes.aside.addClass('mobile-open panel-show');
}
});
$('#open-menus').on('click', function() {
nodes.navInner.slideToggle();
});
if (window.innerWidth <= 960) {
setTimeout(function() {
nodes.navInner.slideUp();
}, 3000);
}
});
</script>
</body>
</html>