锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品国产精品亚洲下载 ,秋霞久久国产精品电影院,久久福利资源国产精品999http://www.shnenglu.com/fenglin/category/14188.html瀛︿互鑷寸敤zh-cnTue, 31 Aug 2010 02:27:22 GMTTue, 31 Aug 2010 02:27:22 GMT60Exercise 7.3 緙栧啓涓涓甫鏈変袱涓?int 鍨嬪艦鍙傜殑鍑芥暟錛屼駭鐢熺涓涓弬鏁扮殑絎簩涓弬鏁版騫傜殑鍊箋傜紪鍐欑▼搴忎紶閫掍袱涓?int 鏁板艱皟鐢ㄨ鍑芥暟錛岃媯楠屽叾緇撴灉銆?/title><link>http://www.shnenglu.com/fenglin/articles/124689.html</link><dc:creator>椋庢灄</dc:creator><author>椋庢灄</author><pubDate>Wed, 25 Aug 2010 08:28:00 GMT</pubDate><guid>http://www.shnenglu.com/fenglin/articles/124689.html</guid><wfw:comment>http://www.shnenglu.com/fenglin/comments/124689.html</wfw:comment><comments>http://www.shnenglu.com/fenglin/articles/124689.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/fenglin/comments/commentRss/124689.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/fenglin/services/trackbacks/124689.html</trackback:ping><description><![CDATA[<div style="BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #eeeeee; PADDING-LEFT: 4px; WIDTH: 98%; PADDING-RIGHT: 5px; FONT-SIZE: 13px; WORD-BREAK: break-all; BORDER-TOP: #cccccc 1px solid; BORDER-RIGHT: #cccccc 1px solid; PADDING-TOP: 4px"><span style="COLOR: #008080"> 1</span><img id=Codehighlighter1_0_72_Open_Image onclick="this.style.display='none'; Codehighlighter1_0_72_Open_Text.style.display='none'; Codehighlighter1_0_72_Closed_Image.style.display='inline'; Codehighlighter1_0_72_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_0_72_Closed_Image onclick="this.style.display='none'; Codehighlighter1_0_72_Closed_Text.style.display='none'; Codehighlighter1_0_72_Open_Image.style.display='inline'; Codehighlighter1_0_72_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif"><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_0_72_Closed_Text>/**/</span><span id=Codehighlighter1_0_72_Open_Text><span style="COLOR: #008000">/*</span><span style="COLOR: #008000"><br></span><span style="COLOR: #008080"> 2</span><span style="COLOR: #008000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">緙栧啓涓涓甫鏈変袱涓?nbsp;int 鍨嬪艦鍙傜殑鍑芥暟錛屼駭鐢熺涓涓弬鏁扮殑絎簩涓弬鏁版騫傜殑鍊箋?br></span><span style="COLOR: #008080"> 3</span><span style="COLOR: #008000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">緙栧啓紼嬪簭浼犻掍袱涓?nbsp;int 鏁板艱皟鐢ㄨ鍑芥暟錛岃媯楠屽叾緇撴灉銆?br></span><span style="COLOR: #008080"> 4</span><span style="COLOR: #008000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif"></span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 5</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif">#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">iostream</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 6</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"><br></span><span style="COLOR: #008080"> 7</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">namespace</span><span style="COLOR: #000000"> std;<br></span><span style="COLOR: #008080"> 8</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"><br></span><span style="COLOR: #008080"> 9</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> Power(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> radix,</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> index)<br></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img id=Codehighlighter1_147_272_Open_Image onclick="this.style.display='none'; Codehighlighter1_147_272_Open_Text.style.display='none'; Codehighlighter1_147_272_Closed_Image.style.display='inline'; Codehighlighter1_147_272_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_147_272_Closed_Image onclick="this.style.display='none'; Codehighlighter1_147_272_Closed_Text.style.display='none'; Codehighlighter1_147_272_Open_Image.style.display='inline'; Codehighlighter1_147_272_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_147_272_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_147_272_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> times </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> index,sum </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">12</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(times</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img id=Codehighlighter1_210_270_Open_Image onclick="this.style.display='none'; Codehighlighter1_210_270_Open_Text.style.display='none'; Codehighlighter1_210_270_Closed_Image.style.display='inline'; Codehighlighter1_210_270_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_210_270_Closed_Image onclick="this.style.display='none'; Codehighlighter1_210_270_Closed_Text.style.display='none'; Codehighlighter1_210_270_Open_Image.style.display='inline'; Codehighlighter1_210_270_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_210_270_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_210_270_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(times</span><span style="COLOR: #000000">--</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img id=Codehighlighter1_231_252_Open_Image onclick="this.style.display='none'; Codehighlighter1_231_252_Open_Text.style.display='none'; Codehighlighter1_231_252_Closed_Image.style.display='inline'; Codehighlighter1_231_252_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_231_252_Closed_Image onclick="this.style.display='none'; Codehighlighter1_231_252_Closed_Text.style.display='none'; Codehighlighter1_231_252_Open_Image.style.display='inline'; Codehighlighter1_231_252_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_231_252_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_231_252_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">            sum </span><span style="COLOR: #000000">*=</span><span style="COLOR: #000000"> radix;<br></span><span style="COLOR: #008080">19</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">        }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">20</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">        </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> sum;<br></span><span style="COLOR: #008080">21</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif"><br></span><span style="COLOR: #008080">22</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif">    }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">23</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif">}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">24</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main()<br></span><span style="COLOR: #008080">25</span><span style="COLOR: #000000"><img id=Codehighlighter1_285_489_Open_Image onclick="this.style.display='none'; Codehighlighter1_285_489_Open_Text.style.display='none'; Codehighlighter1_285_489_Closed_Image.style.display='inline'; Codehighlighter1_285_489_Closed_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="DISPLAY: none" id=Codehighlighter1_285_489_Closed_Image onclick="this.style.display='none'; Codehighlighter1_285_489_Closed_Text.style.display='none'; Codehighlighter1_285_489_Open_Image.style.display='inline'; Codehighlighter1_285_489_Open_Text.style.display='inline';" align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; DISPLAY: none; BORDER-TOP: #808080 1px solid; BORDER-RIGHT: #808080 1px solid" id=Codehighlighter1_285_489_Closed_Text><img src="http://www.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_285_489_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">26</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> myRadix,myIndex;<br></span><span style="COLOR: #008080">27</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Please input Radix and Index:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> endl;<br></span><span style="COLOR: #008080">28</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    cin </span><span style="COLOR: #000000">>></span><span style="COLOR: #000000"> myRadix </span><span style="COLOR: #000000">>></span><span style="COLOR: #000000"> myIndex;<br></span><span style="COLOR: #008080">29</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    cout </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Power(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> myRadix </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> myIndex </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">) =</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> Power(myRadix,myIndex) </span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000"> endl;<br></span><span style="COLOR: #008080">30</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/InBlock.gif">    </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">31</span><span style="COLOR: #000000"><img align=top src="http://www.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif">}</span></span></div> <img src ="http://www.shnenglu.com/fenglin/aggbug/124689.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/fenglin/" target="_blank">椋庢灄</a> 2010-08-25 16:28 <a href="http://www.shnenglu.com/fenglin/articles/124689.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>VS2008鏍煎紡鍖栦唬鐮?/title><link>http://www.shnenglu.com/fenglin/articles/124670.html</link><dc:creator>椋庢灄</dc:creator><author>椋庢灄</author><pubDate>Wed, 25 Aug 2010 05:11:00 GMT</pubDate><guid>http://www.shnenglu.com/fenglin/articles/124670.html</guid><wfw:comment>http://www.shnenglu.com/fenglin/comments/124670.html</wfw:comment><comments>http://www.shnenglu.com/fenglin/articles/124670.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/fenglin/comments/commentRss/124670.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/fenglin/services/trackbacks/124670.html</trackback:ping><description><![CDATA[VS2008鏍煎紡鍖栦唬鐮佹湁浠ヤ笅涓夌鏂規硶錛?br><br>1銆佸叏閫夊悗鎸?ALT + F8 銆?br><br>2銆佺紪杈?>楂樼駭->璁劇疆閫夊畾鍐呭鐨勬牸寮忋?br><br>3銆丆trl+K錛孋trl+F銆? <img src ="http://www.shnenglu.com/fenglin/aggbug/124670.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/fenglin/" target="_blank">椋庢灄</a> 2010-08-25 13:11 <a href="http://www.shnenglu.com/fenglin/articles/124670.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Exercise 6.12http://www.shnenglu.com/fenglin/articles/124018.html椋庢灄椋庢灄Thu, 19 Aug 2010 13:58:00 GMThttp://www.shnenglu.com/fenglin/articles/124018.htmlhttp://www.shnenglu.com/fenglin/comments/124018.htmlhttp://www.shnenglu.com/fenglin/articles/124018.html#Feedback0http://www.shnenglu.com/fenglin/comments/commentRss/124018.htmlhttp://www.shnenglu.com/fenglin/services/trackbacks/124018.html 1/*
 2緙栧啓涓涓皬紼嬪簭錛屼粠鏍囧噯杈撳叆璇誨叆涓緋誨垪 string 瀵硅薄錛屽鎵捐繛緇噸澶嶅嚭鐜扮殑鍗曡瘝銆?br> 3紼嬪簭搴旇鎵懼嚭婊¤凍浠ヤ笅鏉′歡鐨勫崟璇嶇殑杈撳叆浣嶇疆錛氳鍗曡瘝鐨勫悗闈㈢揣璺熺潃鍐嶆鍑虹幇鑷繁鏈韓銆?br> 4璺熻釜閲嶅嬈℃暟鏈澶氱殑鍗曡瘝鍙婂叾閲嶅嬈℃暟銆傝緭鍑洪噸澶嶆鏁扮殑鏈澶у鹼紝鑻ユ病鏈夊崟璇嶉噸澶嶅垯杈撳嚭璇存槑淇℃伅銆?br> 5渚嬪錛屽鏋滆緭鍏ユ槸錛?br> 6
 7     how, now now now brown cow cow
 8
 9鍒欒緭鍑哄簲琛ㄦ槑“now”榪欎釜鍗曡瘝鍑虹幇浜嗕笁嬈°?br>10
11*/

12#include <iostream>
13#include <string>
14
15using namespace std;
16
17int main()
18{
19    string bufString = "",word = "",Aword("");
20    int count1 = 0,count2 = 0;
21    while(getline(cin,bufString))
22    {
23        if(bufString == word)
24        {
25            count1++;
26            word = bufString;
27        }

28        else
29        {
30            
31            if(count1>count2)
32            {
33               count2 = count1;
34               Aword = word;
35            }

36            word = bufString;
37            count1 = 1;
38        }

39    }

40    cout << "Aword:" << Aword << "  times:" << count2 << endl;
41    return 0;
42}


椋庢灄 2010-08-19 21:58 鍙戣〃璇勮
]]>
鎿嶄綔絎︾殑浼樺厛綰э紙浠庝笂鑰屼笅錛岀敱楂樺埌浣庯級http://www.shnenglu.com/fenglin/articles/119614.html椋庢灄椋庢灄Wed, 07 Jul 2010 09:08:00 GMThttp://www.shnenglu.com/fenglin/articles/119614.htmlhttp://www.shnenglu.com/fenglin/comments/119614.htmlhttp://www.shnenglu.com/fenglin/articles/119614.html#Feedback0http://www.shnenglu.com/fenglin/comments/commentRss/119614.htmlhttp://www.shnenglu.com/fenglin/services/trackbacks/119614.html琛?5.4. 鎿嶄綔絎︾殑浼樺厛綰?/span>

Associativity
and Operator

鎿嶄綔絎﹀強鍏剁粨鍚堟?/p>

Function

鍔熻兘

Use

鐢ㄦ硶

See
Page

鍙傝欏電爜

L

::

global scope錛堝叏灞浣滅敤鍩燂級

:: name

p. 450

L

::

class scope錛堢被浣滅敤鍩燂級

class :: name

p. 85

L

::

namespace scope錛堝悕瀛楃┖闂翠綔鐢ㄥ煙錛?/p>

namespace :: name

p. 78

L

.

member selectors錛堟垚鍛橀夋嫨錛?/p>

object . member

p. 25

L

->

member selectors錛堟垚鍛橀夋嫨錛?/p>

pointer -> member

p. 164

L

[]

subscript錛堜笅鏍囷級

variable [ expr ]

p. 113

L

()

function call錛堝嚱鏁拌皟鐢級

name (expr_list)

p. 25

L

()

type construction錛堢被鍨嬫瀯閫狅級

type (expr_list)

p. 460

R

++

postfix increment錛堝悗鑷鎿嶄綔錛?/p>

lvalue++

p. 162

R

--

postfix decrement錛堝悗鑷噺鎿嶄綔錛?/p>

lvalue--

p. 162

R

typeid

type ID錛堢被鍨?ID錛?/p>

typeid (type)

p. 775

R

typeid

run-time type ID錛堣繍琛屾椂綾誨瀷 ID錛?/p>

typeid (expr)

p. 775

R

explicit cast錛堟樉寮忓己鍒剁被鍨嬭漿鎹級

type conversion錛堢被鍨嬭漿鎹級

cast_name <type>(expr)

p. 183

R

sizeof

size of object錛堝璞$殑澶у皬錛?/p>

sizeof expr

p. 167

R

sizeof

size of type錛堢被鍨嬬殑澶у皬錛?/p>

sizeof(type)

p. 167

R

++

prefix increment錛堝墠鑷鎿嶄綔錛?/p>

++ lvalue

p. 162

R

--

prefix decrement錛堝墠鑷噺鎿嶄綔錛?/p>

-- lvalue

p. 162

R

~

bitwise NOT錛堜綅姹傚弽錛?/p>

~expr

p. 154

R

!

logical NOT錛堥昏緫闈烇級

!expr

p. 152

R

-

unary minus錛堜竴鍏冭礋鍙鳳級

-expr

p. 150

R

+

unary plus錛堜竴鍏冩鍙鳳級

+expr

p. 150

R

*

dereference錛堣В寮曠敤錛?/p>

*expr

p. 119

R

&

address-of錛堝彇鍦板潃錛?/p>

&expr

p. 115

R

()

type conversion錛堢被鍨嬭漿鎹級

(type) expr

p. 186

R

new

allocate object錛堝垱寤哄璞★級

new type

p. 174

R

delete

deallocate object錛堥噴鏀懼璞★級

delete expr

p. 176

R

delete[]

deallocate array錛堥噴鏀炬暟緇勶級

delete[] expr

p. 137

L

->*

ptr to member select錛堟寚鍚戞垚鍛樻搷浣滅殑鎸囬拡錛?/p>

ptr ->* ptr_to_member

p. 783

L

.*

ptr to member select錛堟寚鍚戞垚鍛樻搷浣滅殑鎸囬拡錛?/p>

obj .*ptr_to_member

p. 783

L

*

multiply錛堜箻娉曪級

expr * expr

p. 149

L

/

divide錛堥櫎娉曪級

expr / expr

p. 149

L

%

modulo (remainder)錛堟眰妯★紙姹備綑錛夛級

expr % expr

p. 149

L

+

add錛堝姞娉曪級

expr + expr

p. 149

L

-

subtract錛堝噺娉曪級

expr - expr

p. 149

L

<<

bitwise shift left錛堜綅宸︾Щ錛?/p>

expr << expr

p. 154

L

>>

bitwise shift right錛堜綅鍙崇Щ錛?/p>

expr >> expr

p. 154

L

<

less than錛堝皬浜庯級

expr < expr

p. 152

L

<=

less than or equal錛堝皬浜庢垨絳変簬錛?/p>

expr <= expr

p. 152

L

>

greater than錛堝ぇ浜庯級

expr > expr

p. 152

L

>=

greater than or equal錛堝ぇ浜庢垨絳変簬錛?/p>

expr >= expr

p. 152

L

==

equality錛堢浉絳夛級

expr == expr

p. 152

L

!=

inequality錛堜笉絳夛級

expr != expr

p. 152

L

&

bitwise AND錛堜綅涓庯級

expr & expr

p. 154

L

^

bitwise XOR錛堬級

expr ^ expr

p. 154

L

|

bitwise OR錛堜綅寮傛垨錛?/p>

expr | expr

p. 154

L

&&

logical AND錛堥昏緫涓庯級

expr && expr

p. 152

L

||

logical OR錛堥昏緫鎴栵級

expr || expr

p. 152

R

?:

conditional錛堟潯浠舵搷浣滐級

expr ? expr : expr

p. 165

R

=

assignment錛堣祴鍊兼搷浣滐級

lvalue = expr

p. 159

R

*=, /=, %=,

compound assign錛堝鍚堣祴鍊兼搷浣滐級

lvalue += expr, etc.

p. 159

R

+=, -=,

   

p. 159

R

<<=, >>=,

   

p. 159

R

&=,|=, ^=

   

p. 159

R

throw

throw exception錛堟姏鍑哄紓甯革級

throw expr

p. 216

L

,

comma錛堥楀彿錛?/p>

expr , expr

p. 168

鏉ヨ嚜銆奀++ Primer錛孎ourth Edition銆?

椋庢灄 2010-07-07 17:08 鍙戣〃璇勮
]]>
緙栧啓紼嬪簭澶勭悊 vector<int> 瀵硅薄鐨勫厓绱狅細灝嗘瘡涓鏁板煎厓绱犵敤璇ュ肩殑涓ゅ嶆浛鎹€傦紙涓夊厓榪愮畻絎︼級http://www.shnenglu.com/fenglin/articles/119590.html椋庢灄椋庢灄Wed, 07 Jul 2010 06:44:00 GMThttp://www.shnenglu.com/fenglin/articles/119590.htmlhttp://www.shnenglu.com/fenglin/comments/119590.htmlhttp://www.shnenglu.com/fenglin/articles/119590.html#Feedback0http://www.shnenglu.com/fenglin/comments/commentRss/119590.htmlhttp://www.shnenglu.com/fenglin/services/trackbacks/119590.html 1//緙栧啓紼嬪簭澶勭悊 vector<int> 瀵硅薄鐨勫厓绱狅細灝嗘瘡涓鏁板煎厓绱犵敤璇ュ肩殑涓ゅ嶆浛鎹€?/span>
 2#include <iostream>
 3#include <vector>
 4
 5using std::cout;
 6using std::cin;
 7using std::endl;
 8using std::vector;
 9
10int main()
11{
12    vector<int> ivec;
13    const vector<int>::size_type count = 10;
14    //鍒濆鍖杋vec閲岀殑鍏冪礌
15    for(vector<int>::size_type i = 0;i != count; ++i)
16        ivec.push_back(i);
17    //鏄劇ず鎵鏈夊厓绱?/span>
18    for(vector<int>::size_type i = 0;i != ivec.size(); ++i)
19        cout << ivec[i] << endl;
20
21    cout << "--------------------------" << endl;
22    //澶勭悊鍏冪礌
23    vector<int>::iterator iter = ivec.begin();
24    for(;iter != ivec.end();++iter)
25        *iter = (*iter % 2 == 1 ? *iter *2 : *iter);
26
27    //鏄劇ず澶勭悊鍚庣殑鍏冪礌
28    for(iter = ivec.begin();iter != ivec.end();++iter)
29        cout << *iter << endl;
30
31    return 0;
32}


椋庢灄 2010-07-07 14:44 鍙戣〃璇勮
]]>
緙栧啓紼嬪簭鎻愮ず鐢ㄦ埛杈撳叆涓や釜鏁幫紝鐒跺悗鎶ュ憡鍝釜鏁版瘮杈冨皬銆傦紙涓夊厓榪愮畻絎︼級http://www.shnenglu.com/fenglin/articles/119588.html椋庢灄椋庢灄Wed, 07 Jul 2010 06:23:00 GMThttp://www.shnenglu.com/fenglin/articles/119588.htmlhttp://www.shnenglu.com/fenglin/comments/119588.htmlhttp://www.shnenglu.com/fenglin/articles/119588.html#Feedback0http://www.shnenglu.com/fenglin/comments/commentRss/119588.htmlhttp://www.shnenglu.com/fenglin/services/trackbacks/119588.html 

 1//緙栧啓紼嬪簭鎻愮ず鐢ㄦ埛杈撳叆涓や釜鏁幫紝鐒跺悗鎶ュ憡鍝釜鏁版瘮杈冨皬銆?/span>
 2#include <iostream>
 3
 4using std::cin;
 5using std::cout;
 6using std::endl;
 7
 8int main()
 9{
10    cout << "Please enter two numbers:" << endl;
11    int a = 0,b = 0;
12    cin >> a;
13    cin >> b;
14    cout << "So,the number " << (a>? b : a) 
15        << " is smaller than " << (a>? a : b) 
16        << "." << endl;
17    return 0;
18}


椋庢灄 2010-07-07 14:23 鍙戣〃璇勮
]]>
热99RE久久精品这里都是精品免费| 色欲综合久久中文字幕网| 亚洲国产精品高清久久久| 伊人久久大香线蕉AV一区二区| 99久久超碰中文字幕伊人| 久久久久亚洲av毛片大| 国产91色综合久久免费| 中文国产成人精品久久不卡| 久久久久国产日韩精品网站| 久久国产色AV免费观看| 综合久久给合久久狠狠狠97色 | 久久精品中文字幕有码| 性做久久久久久免费观看 | 波多野结衣AV无码久久一区| 久久精品国产亚洲AV麻豆网站 | 九九精品久久久久久噜噜| 精品久久久噜噜噜久久久| 久久综合精品国产一区二区三区 | 狠狠狠色丁香婷婷综合久久五月| 影音先锋女人AV鲁色资源网久久| 国产Av激情久久无码天堂| 久久久久久久91精品免费观看| 亚洲性久久久影院| 岛国搬运www久久| 99久久精品九九亚洲精品| 日本免费久久久久久久网站| 精品久久久久久无码专区| 99久久综合国产精品免费| 久久人人爽人爽人人爽av| 国产精品久久一区二区三区| 欧美噜噜久久久XXX| 精品久久久久久久久午夜福利| 亚洲精品tv久久久久久久久久| 久久久久久综合一区中文字幕| 久久久久久亚洲Av无码精品专口| 久久天天躁狠狠躁夜夜avapp| 亚洲国产精品无码久久一区二区 | 国产精品久久国产精麻豆99网站| 久久综合亚洲鲁鲁五月天| 久久亚洲sm情趣捆绑调教| 一本久久综合亚洲鲁鲁五月天|