Skip to content

Commit

Permalink
add cnzz code
Browse files Browse the repository at this point in the history
  • Loading branch information
numbbbbb committed Jun 11, 2014
1 parent a10ac05 commit 55510ea
Show file tree
Hide file tree
Showing 42 changed files with 127 additions and 127 deletions.
6 changes: 3 additions & 3 deletions chapter1/01_swift.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="1.1" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="1.1" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_4">
<section class="normal" id="section-gitbook_104">

<h1 id="-swift">关于 Swift</h1>
<hr>
Expand Down Expand Up @@ -642,6 +642,6 @@ <h1 id="-swift">关于 Swift</h1>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter1/02_a_swift_tour.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="1.2" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="1.2" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_6">
<section class="normal" id="section-gitbook_102">

<h1 id="swift-">Swift 初见</h1>
<hr>
Expand Down Expand Up @@ -1148,6 +1148,6 @@ <h2 id="-">泛型</h2>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter1/chapter1.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="1" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="1" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_8">
<section class="normal" id="section-gitbook_106">

<h1 id="-swift">欢迎使用 Swift</h1>
<p>在本章中您将了解 Swift 的特性和开发历史,并对 Swift 有一个初步的了解。</p>
Expand Down Expand Up @@ -636,6 +636,6 @@ <h1 id="-swift">欢迎使用 Swift</h1>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter2/01_The_Basics.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.1" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.1" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_11">
<section class="normal" id="section-gitbook_109">

<h1 id="-">基础部分</h1>
<hr>
Expand Down Expand Up @@ -1012,6 +1012,6 @@ <h3 id="-">使用断言来调试</h3>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
22 changes: 11 additions & 11 deletions chapter2/02_Basic_Operators.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.2" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.2" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,20 +587,20 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_46">
<section class="normal" id="section-gitbook_144">

<h1 id="-">基本运算符</h1>
<hr>
<p>本页包含内容:</p>
<ul>
<li><a href="#terminology">术语</a> </li>
<li><a href="#assignment_operator">赋值运算符</a> </li>
<li><a href="#arithmetic_operators">数值运算符</a> </li>
<li><a href="#compound_assignment_operators">组合赋值运算符(Compound Assignment Operators)</a> </li>
<li><a href="#comparison_operators">比较运算符</a> </li>
<li><a href="#ternary_conditional_operator">三目条件运算符(Ternary Conditional Operator)</a> </li>
<li><a href="#range_operators">区间运算符</a> </li>
<li><a href="#logical_operators">逻辑运算符</a> </li>
<li><a href="#terminology">术语</a></li>
<li><a href="#assignment_operator">赋值运算符</a></li>
<li><a href="#arithmetic_operators">数值运算符</a></li>
<li><a href="#compound_assignment_operators">组合赋值运算符(Compound Assignment Operators)</a></li>
<li><a href="#comparison_operators">比较运算符</a></li>
<li><a href="#ternary_conditional_operator">三目条件运算符(Ternary Conditional Operator)</a></li>
<li><a href="#range_operators">区间运算符</a></li>
<li><a href="#logical_operators">逻辑运算符</a></li>
</ul>
<p>运算符是检查,改变,合并值的特殊符号或短语。例如,加号<code>+</code>把计算两个数的和(如 <code>let i = 1 + 2</code>)。复杂些的运行算包括逻辑与<code>&amp;&amp;</code>(如 <code>if enteredDoorCode &amp;&amp; passedRetinaScan</code>),还有自增运算符<code>++i</code>这样让自身加一的便捷运算。</p>
<p>Swift支持大部分标准C语言的运算符,且改进许多特性来减少常规编码错误。如,赋值符<code>=</code>不返回值,以防止错把等号<code>==</code>写成赋值号<code>=</code>而导致Bug。数值运算符(<code>+</code><code>-</code><code>*</code><code>/</code><code>%</code>等)会检测并不允许值溢出,以此来避免保存变量时由于变量大于或小于其类型所能承载的范围时导致的异常结果。当然允许你选择使用Swift的溢出运算符来玩溢出。具体使用请移步<a href="23_Advanced_Operators.html#overflow_operators">溢出运算符</a></p>
Expand Down Expand Up @@ -945,6 +945,6 @@ <h3 id="-">使用括号来明确优先级</h3>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter2/03_Strings_and_Characters.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.3" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.3" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_13">
<section class="normal" id="section-gitbook_111">

<h1 id="-strings-and-characters-">字符串和字符 (Strings and Characters)</h1>
<hr>
Expand Down Expand Up @@ -930,6 +930,6 @@ <h5 id="unicode-unicode-scalars-">Unicode 标量 (Unicode Scalars)</h5>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter2/04_Collection_Types.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.4" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.4" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_25">
<section class="normal" id="section-gitbook_123">

<h1 id="-collection-types-">集合类型 (Collection Types)</h1>
<hr>
Expand Down Expand Up @@ -864,6 +864,6 @@ <h2 id="-">集合的可变性</h2>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter2/05_Control_Flow.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.5" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.5" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_27">
<section class="normal" id="section-gitbook_125">

<h1 id="-">控制流</h1>
<hr>
Expand Down Expand Up @@ -1136,6 +1136,6 @@ <h3 id="labeled-statements">Labeled Statements</h3>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter2/06_Functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.6" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.6" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_29">
<section class="normal" id="section-gitbook_127">

<h1 id="-functions-">函数(Functions)</h1>
<hr>
Expand Down Expand Up @@ -985,6 +985,6 @@ <h3 id="-function-type-as-return-types-">函数类型作为返回类型(Functi
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter2/07_Closures.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.7" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.7" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_31">
<section class="normal" id="section-gitbook_129">

<h1 id="-">闭包</h1>
<hr>
Expand Down Expand Up @@ -893,6 +893,6 @@ <h3 id="-">闭包是引用类型</h3>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter2/08_Enumerations.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.8" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.8" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_37">
<section class="normal" id="section-gitbook_135">

<h1 id="-enumerations-">枚举(Enumerations)</h1>
<hr>
Expand Down Expand Up @@ -780,6 +780,6 @@ <h2 id="-raw-values-">原始值(Raw Values)</h2>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter2/09_Classes_and_Structures.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.9" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.9" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_39">
<section class="normal" id="section-gitbook_137">

<h3 id="-">类和结构体</h3>
<p>本页包含内容:</p>
Expand Down Expand Up @@ -898,6 +898,6 @@ <h3 id="-">字典类型的赋值和拷贝行为</h3>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter2/10_Properties.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.10" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.10" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_40">
<section class="normal" id="section-gitbook_138">

<h1 id="-properties-">属性 (Properties)</h1>
<hr>
Expand Down Expand Up @@ -943,6 +943,6 @@ <h3 id="-">获取和设置类属性的值</h3>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
6 changes: 3 additions & 3 deletions chapter2/11_Methods.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.11" data-basepath=".." data-revision="1402469604919">
<div class="book" data-level="2.11" data-basepath=".." data-revision="1402493167130">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_42">
<section class="normal" id="section-gitbook_140">

<h1 id="-methods-">方法(Methods)</h1>
<hr>
Expand Down Expand Up @@ -829,6 +829,6 @@ <h3 id="-type-methods-">类型方法(Type Methods)</h3>
</script>


</body>
<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>

</html>
Loading

0 comments on commit 55510ea

Please sign in to comment.