-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex3.html
167 lines (153 loc) · 9.88 KB
/
index3.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
<!DOCTYPE html>
<html lang="zh_cn" prefix="og: http://ogp.me/ns#">
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Metadata -->
<meta name="description" content="一个游戏程序员。曾经参与开发过<a href='https://www.bing.com/search?q=%E4%BB%99%E4%BE%A3%E5%A5%87%E7%BC%983'>仙侣奇缘3</a>、<a href='http://sh.70yx.com'>水浒传</a>、<a href='https://itunes.apple.com/cn/app/id938688461'>小米运动</a>、<a href='https://itunes.apple.com/cn/app/id1034182617'>米动</a>和<a href='https://www.taptap.com/app/143658'>无限激战</a>" />
<meta property="og:description" content="一个游戏程序员。曾经参与开发过<a href='https://www.bing.com/search?q=%E4%BB%99%E4%BE%A3%E5%A5%87%E7%BC%983'>仙侣奇缘3</a>、<a href='http://sh.70yx.com'>水浒传</a>、<a href='https://itunes.apple.com/cn/app/id938688461'>小米运动</a>、<a href='https://itunes.apple.com/cn/app/id1034182617'>米动</a>和<a href='https://www.taptap.com/app/143658'>无限激战</a>" />
<meta property="og:title" content="funcman's blog" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://funcman.me" />
<meta property="og:image" content="https://funcman.me/images/avatar.png" />
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>funcman's blog</title>
<!-- CSS -->
<link href="//fonts.googleapis.com/" rel="dns-prefetch">
<link href="//fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic|Abril+Fatface|PT+Sans:400,400italic,700&subset=latin,latin-ext" rel="stylesheet">
<link rel="stylesheet" href="https://funcman.me/theme/css/poole.css" />
<link rel="stylesheet" href="https://funcman.me/theme/css/hyde.css" />
<link rel="stylesheet" href="https://funcman.me/theme/css/syntax.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/fork-awesome.min.css" crossorigin="anonymous">
<!-- Feeds -->
<link href="https://funcman.me/rss.xml" type="application/atom+xml" rel="alternate" title="funcman's blog Full Atom Feed" />
<!-- Analytics -->
</head>
<body class="theme-base-0e">
<div class="sidebar">
<div class="container sidebar-sticky">
<div class="sidebar-about">
<h1>
<a href="/">
<img class="profile-picture" src="https://funcman.me/images/avatar.png">
funcman's blog
</a>
</h1>
<p class="lead"></p>
<p class="lead">一个游戏程序员。曾经参与开发过<a href='https://www.bing.com/search?q=%E4%BB%99%E4%BE%A3%E5%A5%87%E7%BC%983'>仙侣奇缘3</a>、<a href='http://sh.70yx.com'>水浒传</a>、<a href='https://itunes.apple.com/cn/app/id938688461'>小米运动</a>、<a href='https://itunes.apple.com/cn/app/id1034182617'>米动</a>和<a href='https://www.taptap.com/app/143658'>无限激战</a> </p>
<p></p>
</div>
<nav class="sidebar-social">
<a class="sidebar-social-item" href="mailto:[email protected]">
<i class="fa fa-envelope"></i>
</a>
<a class="sidebar-social-item" href="https://twitter.com/funcman" target="_blank">
<i class="fa fa-twitter"></i>
</a>
<a class="sidebar-social-item" href="https://github.com/funcman" target="_blank">
<i class="fa fa-github"></i>
</a>
<a class="sidebar-social-item" href="https://funcman.me/rss.xml">
<i class="fa fa-rss"></i>
</a>
</nav>
</div>
</div> <div class="content container">
<div class="posts">
<div class="post">
<h1 class="post-title" href="https://funcman.me/about_logos_of_the_rational_number_and_irrational_number.html">
<a href="https://funcman.me/about_logos_of_the_rational_number_and_irrational_number.html">关于有理数、无理数中的“理”字</a>
</h1>
<span class="post-date">周三 17 十二月 2014</span>
<p>
<p>我们知道有理数就是可以用整数比值表示的数字。但对于无理数,我们就不好下定义,只好说不能用整数比值表示的数字 …</p>
</p>
<a class="read-more" href="about_logos_of_the_rational_number_and_irrational_number.html">Continue reading »</a>
</div>
<div class="post">
<h1 class="post-title" href="https://funcman.me/about_sqrt_of_std_list.html">
<a href="https://funcman.me/about_sqrt_of_std_list.html">关于std::list的排序</a>
</h1>
<span class="post-date">周六 04 九月 2010</span>
<p>
<p>std::list和std::vector不同,无法使用STL算法库里的sort(),因为std::list不支持随机访问(random access)。</p>
<div class="highlight"><pre><span></span><code><span class="c1">// std::list排序示例</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf"><time.h></span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf"><list></span>
<span class="c1">// 它是个仿函数</span>
<span class="k">struct</span><span class="w"> </span><span class="nc">mycmp</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="nf">operator</span><span class="p">()(</span><span class="kt">int</span><span class="o">*</span><span class="w"> </span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="o">*</span><span class="w"> </span><span class="n">b</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">;</span>
<span class="w"> </span><span class="p">}</span>
<span class="p">};</span><span class="w"> </span>
<span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="n">std</span><span class="o">::</span><span class="n">list</span><span class="w"> </span><span class="n">il</span><span class="p">;</span>
<span class="w"> </span><span class="kt">int …</span></code></pre></div>
</p>
<a class="read-more" href="about_sqrt_of_std_list.html">Continue reading »</a>
</div>
<div class="post">
<h1 class="post-title" href="https://funcman.me/win32_console_class.html">
<a href="https://funcman.me/win32_console_class.html">一个Win32控制台类</a>
</h1>
<span class="post-date">周日 06 六月 2010</span>
<p>
<p>对于编写Win32程序,尤其是游戏这种实时性高的程序来说,断点调试未必是最合适的调试方法。很多时候,我们更渴望看到实时打 …</p>
</p>
<a class="read-more" href="win32_console_class.html">Continue reading »</a>
</div>
<div class="post">
<h1 class="post-title" href="https://funcman.me/data_hiding_in_c.html">
<a href="https://funcman.me/data_hiding_in_c.html">C语言对数据的隐藏封装</a>
</h1>
<span class="post-date">周日 16 五月 2010</span>
<p>
<p>在C++中,如果我们想把数据结构隐藏起来,只为用户提供接口,可以通过实现继承接口类的方式到达目的。那C中,可以采用什 …</p>
</p>
<a class="read-more" href="data_hiding_in_c.html">Continue reading »</a>
</div>
<div class="post">
<h1 class="post-title" href="https://funcman.me/review_of_4851_by_ai_weiwei.html">
<a href="https://funcman.me/review_of_4851_by_ai_weiwei.html">艾未未作品《4851》观后感</a>
</h1>
<span class="post-date">周日 10 一月 2010</span>
<p>
<p>艾未未先生的《4851》是我看到的最深刻的艺术作品。</p>
<p>87分钟的片长,可能没几个人会真的花87分钟完整地看完这部片子。</p>
<p>没关系,你的观看方式已经是这部艺术作品 …</p>
</p>
<a class="read-more" href="review_of_4851_by_ai_weiwei.html">Continue reading »</a>
</div>
<div class="post">
<h1 class="post-title" href="https://funcman.me/logic_of_animal_protectionism.html">
<a href="https://funcman.me/logic_of_animal_protectionism.html">动物保护的逻辑──小论《海豚湾》的政治正确性</a>
</h1>
<span class="post-date">周一 21 十二月 2009</span>
<p>
<p>一、某些动物性情趋向于人,人们能从这些动物身上获得人道情感,保护这些动物是在维护人道主义。之所有争取一些动物 …</p>
</p>
<a class="read-more" href="logic_of_animal_protectionism.html">Continue reading »</a>
</div>
<div class="post">
<h1 class="post-title" href="https://funcman.me/when_should_determine_whether_a-pointer_is_null.html">
<a href="https://funcman.me/when_should_determine_whether_a-pointer_is_null.html">应该在何时判断一个指针是否为NULL</a>
</h1>
<span class="post-date">周五 12 十月 2007</span>
<p>
<p>今天看到一篇Blog:<a href="http://fsfoundry.org/codefreak/2007/09/16/a-couple-of-things-about-pointer-to-null/">《NULL指标两三事》</a>,文中谈的主题即是我这篇Blog的题目,我这里也只是对原文的做些简单的记录。</p>
<p>文中谈到的问题,也是我们平常 …</p>
</p>
<a class="read-more" href="when_should_determine_whether_a-pointer_is_null.html">Continue reading »</a>
</div>
</div>
<div class="pagination">
<span class="pagination-item older"><a href="https://funcman.me/index2.html">Newer</a></span>
<span class="pagination-item newer">Older</span>
</div>
</div>
</body>
</html>