锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产av高清无码,日韩成人精品日本亚洲,亚洲人成网站在线观看播放http://www.tkk7.com/iceboundrock/archive/2006/11/25/83459.htmliceboundrockiceboundrockSat, 25 Nov 2006 08:08:00 GMThttp://www.tkk7.com/iceboundrock/archive/2006/11/25/83459.htmlhttp://www.tkk7.com/iceboundrock/comments/83459.htmlhttp://www.tkk7.com/iceboundrock/archive/2006/11/25/83459.html#Feedback1http://www.tkk7.com/iceboundrock/comments/commentRss/83459.htmlhttp://www.tkk7.com/iceboundrock/services/trackbacks/83459.html C++ 鍜?/span> C#/java 鏈夊緢澶氬尯鍒紝鍏朵腑鏈澶х殑鍖哄埆褰撴暟瀵瑰唴瀛樼殑綆$悊銆?/span>

C++ 涓紝綾葷殑浣跨敤鑰呭喅瀹氫簡(jiǎn)綾葷殑瀹炰緥鍐呭瓨浼?xì)濡備綍鍒嗛厤锛屽垎閰嶅湪鍫嗕笂杩樻槸鏍堜笂銆傛垜浠厛鐪嬩竴孌典緥瀛愮▼搴忥細(xì)

#include "stdio.h"

class Demo{

public :

聽聽聽 int i;

聽聽聽 char* objName;

聽聽聽 Demo(){

聽聽聽聽聽聽聽 objName = "Default object.";

聽聽聽聽聽聽聽 printf("%s, objName = %s\r\n", "Enter Demo default ctor. method.", objName);

聽聽聽聽聽聽聽

聽聽聽聽聽聽聽 i = 1000;

聽聽聽 }

聽聽聽 Demo(int ival, char* name){

聽聽聽聽聽聽聽 printf("%s,i = %d, objName = %s\r\n", "Enter Demo(int ival) ctor method", ival, name);

聽聽聽聽聽聽聽 i = ival;

聽聽聽聽聽聽聽 objName = name;

聽聽聽 }

聽聽聽 Demo(const Demo& d){

聽聽聽聽聽聽聽 printf("%s\r\n", "Enter Demo copy ctor method.");

聽聽聽聽聽聽聽 i = d.i;

聽聽聽聽聽聽聽 objName = "copied d";

聽聽聽 }

聽聽聽 ~Demo(){

聽聽聽聽聽聽聽 printf("%s, i = %d, objName = %s\r\n", "Enter Demo dector. method" , i, objName);

聽聽聽 }

};

Demo& testMethod0(){

聽聽聽 printf("%s\r\n", "Enter testMethod0.");

聽聽聽 Demo d(0, "d in testMethod0");

聽聽聽 printf("%s\r\n", "Exit testMethod0.");

聽聽聽 return d;

}

Demo testMethod1(){

聽聽聽 printf("%s\r\n", "Enter testMethod1.");

聽聽聽 Demo d(1, "d in testMethod1");

聽聽聽 printf("%s\r\n", "Exit testMethod1.");

聽聽聽 return d;

}

Demo* testMethod2(){

聽聽聽 printf("%s\r\n", "Enter testMethod2.");

聽聽聽 Demo *d = new Demo(2, "d in testMethod2");

聽聽聽 printf("%s\r\n", "Exit testMethod2.");

聽聽聽 return d;

}

int main(int argc, _TCHAR* argv[])

{

聽聽聽 Demo d;

聽聽聽 d = testMethod1();

聽聽聽 Demo& d1 = testMethod0();

聽聽聽 Demo d2(999, "d1");

聽聽聽 Demo* d3 = testMethod2();

聽聽聽 printf("d.i = %d\r\n", d.i);

聽聽聽 printf("d1.i = %d\r\n", d1.i);

聽聽聽 printf("d2.i = %d\r\n", d2.i);

聽聽聽 printf("d3.i = %d\r\n", d3->i);

聽聽聽 delete d3;

聽聽聽 return 0;

}

Output 錛?/span>

Enter Demo default ctor. method., objName = Default object.

Enter testMethod1.

Enter Demo(int ival) ctor method,i = 1, objName = d in testMethod1

Exit testMethod1.

Enter Demo copy ctor method.

Enter Demo dector. method, i = 1, objName = d in testMethod1

Enter Demo dector. method, i = 1, objName = copied d

Enter testMethod0.

Enter Demo(int ival) ctor method,i = 0, objName = d in testMethod0

Exit testMethod0.

Enter Demo dector. method, i = 0, objName = d in testMethod0

Enter Demo(int ival) ctor method,i = 999, objName = d1

Enter testMethod2

Enter Demo(int ival) ctor method,i = 2, objName = d in testMethod2

Exit testMethod2.

d.i = 1

d1.i = -2

d2.i = 999

d3.i = 2

Enter Demo dector. method, i = 2, objName = d in testMethod2

Enter Demo dector. method, i = 999, objName = d1

Enter Demo dector. method, i = 1, objName = copied d

涓?/span> C# 涓嶅悓錛屽湪 C++ 涓紝瀵硅薄澹版槑鐨勬椂鍊欏氨宸茬粡鎵ц浜?jiǎn)鏋勯犲嚱鏁幫紝姣斿涓婇潰渚嬪瓙鐨?/span> main 鍑芥暟涓殑絎竴琛岋紝 Demo d 錛屼粠灞忓箷涓婄殑杈撳嚭鏉ョ湅錛岃繖涓椂鍊?/span> Demo class 鐨勯粯璁ゆ瀯閫犲嚱鏁頒細(xì)琚皟鐢ㄣ?/span>

鎺ヤ笅鏉ョ殑涓琛屼唬鐮佽皟鐢紝寮曞嚭浜?jiǎn)寰堟湁瓒g殑鎯呭喌锛屽綋鐒朵篃闅愯棌鐫涓嶅皬鐨勯棶棰樸傝繖琛屼唬鐮侀犳垚浜?jiǎn)涓嬈℃瀯閫犲嚱鏁拌皟鐢紝涓嬈℃嫹璐濇瀯閫犲嚱鏁拌皟鐢ㄥ拰涓ゆ鏋愭瀯鍑芥暟璋冪敤銆傝鎴戜滑鏉ュ叿浣撳垎鏋愪竴涓嬶細(xì)絎竴嬈¤皟鐢ㄦ瀯閫犲嚱鏁板緢瀹規(guī)槗鐞嗚В錛屽洜涓哄湪 testMethod1 涓垜浠0鏄庝簡(jiǎn) Demo d(0) 錛岄鍑?/span> testMethod1 錛屽嚱鏁扮殑榪斿洖鍊艱璧嬪肩粰鍙橀噺 d2 錛岃繖涓椂鍊欙紝 d2 琚嫹璐濇瀯閫犲嚱鏁伴噸鏂版瀯閫犱簡(jiǎn)涓嬈°傛帴鐫 testMethod1 涓瀯閫犵殑灞閮ㄥ彉閲忚鏋愭瀯錛岀劧鍚庯紝灞呯劧鎷瘋礉鏋勯犲嚱鏁版瀯閫犵殑瀵硅薄涔熻鏋愭瀯錛熺瓑絳夛紝鐪嬪畬鎵鏈夎緭鍑猴紝鎴戜滑鍙戠幇錛?/span> objName = copied d 鐨勫璞¤鏋愭瀯涓ゆ錛岃?/span> objName = Default obj 鐨勫璞¤鏋勯犲嚭涔嬪悗娌℃湁琚瀽鏋勶紝榪欓噷闅愯棌浜?jiǎn)寰堜弗閲嶇殑闂锛屾湁鍙兘瀵艰嚧鍐呭瓨娉勬紡銆佸彞鏌勪笉鑳借姝g‘鍏抽棴絳夌瓑銆傚彟澶栵紝鎷瘋礉鏋勯犲嚱鏁扮殑鎵ц鍙兘瀵艱嚧娼滃湪鐨勬晥鐜囬棶棰橈紝鑰冭檻涓涓寘鍚法澶х煩闃電殑瀵硅薄錛?/span> copy 榪欎釜瀵硅薄浼?xì)鎬庝箞鏍鳳紵

鎺ヤ笅鏉ョ殑涓琛屼唬鐮侊紝 testMethod0 榪斿洖涓涓璞$殑寮曠敤錛屽綋鐒朵笉浼?xì)瀵艰嚧鎷疯礉鏋勯犲嚱鏁拌璋冪敤錛屼絾鏄紝榪欐牱涔熸槸鏈夐棶棰樼殑錛屽湪鍑芥暟涓0鏄庣殑灞閮ㄥ彉閲忓湪鍑芥暟鎵ц瀹屾垚鐨勬椂鍊欎細(xì)琚瀽鏋勶紝閭d箞鐩存帴榪斿洖灞閮ㄥ彉閲忓氨鍙兘浼?xì)鍑虹幇闂銆?/span> testMethod0 閫鍑轟互鍚庯紝浠栧唴閮ㄧ殑 Demo 瀵硅薄灝變細(xì)鑷姩鏋愭瀯錛屽闈㈠瀹冪殑寮曠敤褰撶劧涔熸棤娉曟寚鍚戞紜殑瀵硅薄浜?jiǎn)锛屾墍浠ュ悗闈㈢▼搴忔墦鍗?/span> d.i 鐨勬椂鍊欙紝杈撳嚭浜?jiǎn)涓涓帿鍚嶅叾濡欑殑 -2 銆?/span>

鏁堢巼鏈濂界殑鏂規(guī)硶褰撴暟榪斿洖鎸囬拡浜?jiǎn)锛屽畠涓嶄細(xì)瀵艰嚧瀵硅薄澶嶅堄灱屽鏋滀娇鐢ㄥ緱褰撳Q屼篃涓嶄細(xì)瀵艱嚧鍐呭瓨娉勬紡鎴栬呭彞鏌勬硠婕忋?/span> testMethod2 婕旂ず浜?jiǎn)杩櫩U嶆儏鍐碉紝褰撶劧錛屼綘闇瑕佹墜宸ュ垹闄ゅ湪 testMethod2 涓垱寤虹殑瀵硅薄銆?/span>



]]>
C++涓夯鐑?chǔ)鐨刢onst錛?錛?/title><link>http://www.tkk7.com/iceboundrock/archive/2006/11/22/82825.html</link><dc:creator>iceboundrock</dc:creator><author>iceboundrock</author><pubDate>Wed, 22 Nov 2006 09:03:00 GMT</pubDate><guid>http://www.tkk7.com/iceboundrock/archive/2006/11/22/82825.html</guid><wfw:comment>http://www.tkk7.com/iceboundrock/comments/82825.html</wfw:comment><comments>http://www.tkk7.com/iceboundrock/archive/2006/11/22/82825.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/iceboundrock/comments/commentRss/82825.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/iceboundrock/services/trackbacks/82825.html</trackback:ping><description><![CDATA[ <p>鍏充簬const錛孋++鐨刢onst鏄竴涓潪甯擱潪甯擱夯鐑?chǔ)鐨勫叧閿瓧锛屼絾鏄鏋滀綘涓嶇敤锛屼篃浼?xì)甯︽潵涓浜涢夯鐑?chǔ)銆?/p> <p>涓嬮潰涓孌電畝鍗曠殑紼嬪簭錛屾紨紺轟簡(jiǎn)const鍙橀噺錛宑onst鎸囬拡鐨勫濡欏叧緋?/p> <p>聽</p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #008080">聽1</span> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #000000">#include聽</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">stdafx.h</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">聽2</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">聽3</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">聽4</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽_tmain(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽argc,聽_TCHAR</span> <span style="COLOR: #000000">*</span> <span style="COLOR: #000000">聽argv[])<br /></span> <span style="COLOR: #008080">聽5</span> <span style="COLOR: #000000"> <img id="Codehighlighter1_59_506_Open_Image" onclick="this.style.display='none'; Codehighlighter1_59_506_Open_Text.style.display='none'; Codehighlighter1_59_506_Closed_Image.style.display='inline'; Codehighlighter1_59_506_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /> <img id="Codehighlighter1_59_506_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_59_506_Closed_Text.style.display='none'; Codehighlighter1_59_506_Open_Image.style.display='inline'; Codehighlighter1_59_506_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /> </span> <span id="Codehighlighter1_59_506_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_59_506_Open_Text"> <span style="COLOR: #000000">{<br /></span> <span style="COLOR: #008080">聽6</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #0000ff">const</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽constInt1聽</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">聽7</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">聽8</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #0000ff">const</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">*</span> <span style="COLOR: #000000">constIntPoint聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽NULL;<br /></span> <span style="COLOR: #008080">聽9</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">10</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">*</span> <span style="COLOR: #000000">IntPoint聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽NULL;<br /></span> <span style="COLOR: #008080">11</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">12</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽constIntPoint聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">&</span> <span style="COLOR: #000000">constInt1;<br /></span> <span style="COLOR: #008080">13</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">14</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #0000ff">const</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽constInt2聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">2</span> <span style="COLOR: #000000">;<br /></span> <span style="COLOR: #008080">15</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">16</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽I(yíng)nt3聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">3</span> <span style="COLOR: #000000">;<br /></span> <span style="COLOR: #008080">17</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽<br /></span> <span style="COLOR: #008080">18</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">IntPoint聽=聽&constInt2;聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">Error聽1</span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #008080">19</span> <span style="COLOR: #008000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> </span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">20</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">21</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽constIntPoint聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">&</span> <span style="COLOR: #000000">Int3;<br /></span> <span style="COLOR: #008080">22</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">23</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">(*constIntPoint)++;聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">Error聽2</span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #008080">24</span> <span style="COLOR: #008000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> </span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">25</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽printf(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">constInt1=%d\r\n</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">,聽constInt1);<br /></span> <span style="COLOR: #008080">26</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽printf(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">constInt2=%d\r\n</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">,聽constInt2);<br /></span> <span style="COLOR: #008080">27</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽printf(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">Int3=%d\r\n</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">,聽I(yíng)nt3);<br /></span> <span style="COLOR: #008080">28</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">29</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽printf(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">constIntPoint聽point聽to聽%d\r\n</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">,聽</span> <span style="COLOR: #000000">*</span> <span style="COLOR: #000000">constIntPoint);<br /></span> <span style="COLOR: #008080">30</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</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 src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span> </span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">32</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">33</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> </div> <p> <br />鏈綆鍗曟渶娓呮櫚鐨刢onst浣跨敤鏂規(guī)硶灝辨槸澹版槑const鍙橀噺浜?jiǎn)锛屽彉閲忛渶瑕佸湪鐢熷懡鐨勫湴鏂圭珛鍗沖垵濮嬪寲錛屽垵濮嬪寲瀹屾垚涔嬪悗灝變笉鑳藉啀鏀逛簡(jiǎn)銆?/p> <p>濡傛灉浣犵敤鍚屾牱鐨勬濊礬鏉ョ湅寰卌onst鎸囬拡錛屼綘浼?xì)鍙戠庮C綘閿欑殑寰堜弗閲嶏紝浣犵湅錛岃繖涓猚onstIntPoint鎹簡(jiǎn)鍑犱釜鐩爣渚濈劧鐢熼緳媧昏檸錛岀紪璇戝櫒寰堟剦蹇殑鎺ュ彈浜?jiǎn)杩檶D典唬鐮侊紝榪炰釜warn閮芥病鏈夈?br />鍘熸潵const鎸囬拡鏄寚鍚慶onst鍙橀噺鐨勬寚閽堬紝鑰屼笉鏄鎸囬拡鏈韓鏄痗onst鐨勩傛棤</p> <p>ok錛宑onst鍙橀噺涓嶈兘鐩存帴淇敼錛岄毦閬撴垜鍙栧埌浠栫殑鍦板潃錛屽啀鏉ヤ慨鏀歸兘涓嶈涔堬紵涓嶈錛岀紪璇戝櫒浼?xì)鐩存帴鍛婅瘔浣犲Q屾棤娉曟妸涓涓猚onst鐨勬寚閽堣漿鎹㈡垚鏅氭寚閽堬紝<br /><br />Error聽1聽error C2440: '=' : cannot convert from 'const int *__w64 ' to 'int *'聽</p> <p>璁轟竴涓彉閲忓師鏉ユ槸鍚﹁澹版槑鎴恈onst錛屼綘鐢ㄤ竴涓猚onst鎸囬拡鎸囧悜瀹冿紝鐒跺悗浣跨敤*榪愮畻絎﹀彿鍙栧嚭榪欎釜鍙橀噺璇曞浘榪涜淇敼鐨勬搷浣滈兘鏄笉鍏佽鐨勶紝鍙傝冧唬鐮佷腑琚敞閲婃帀鐨凟rror2銆?br /><br />Error聽2聽error C3892: 'constIntPoint' : you cannot assign to a variable that is const聽<br /></p> <img src ="http://www.tkk7.com/iceboundrock/aggbug/82825.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/iceboundrock/" target="_blank">iceboundrock</a> 2006-11-22 17:03 <a href="http://www.tkk7.com/iceboundrock/archive/2006/11/22/82825.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>閲嶆嬀C++http://www.tkk7.com/iceboundrock/archive/2006/11/22/82813.htmliceboundrockiceboundrockWed, 22 Nov 2006 08:34:00 GMThttp://www.tkk7.com/iceboundrock/archive/2006/11/22/82813.htmlhttp://www.tkk7.com/iceboundrock/comments/82813.htmlhttp://www.tkk7.com/iceboundrock/archive/2006/11/22/82813.html#Feedback0http://www.tkk7.com/iceboundrock/comments/commentRss/82813.htmlhttp://www.tkk7.com/iceboundrock/services/trackbacks/82813.html鎵撶畻鍊熺潃榪欐澶嶄範(fàn)鏁版嵁緇撴瀯涓庣畻娉曠殑鏈轟細(xì)閲嶆嬀C++銆備粖澶╁仛浜?jiǎn)涓や釜瀹瑰櫒绫诲Q屽彂鐜板緢澶氬熀紜璇硶鐨勪笢瑗挎垜閮藉凡璁板緱緇忔ā媯變袱鍙簡(jiǎn)錛宻igh錛岀湅鏉ョ湡鏄鍔姏鎵嶈浜?jiǎn)銆?img src ="http://www.tkk7.com/iceboundrock/aggbug/82813.html" width = "1" height = "1" />

iceboundrock 2006-11-22 16:34 鍙戣〃璇勮
]]>
主站蜘蛛池模板: fc2免费人成在线| 国产无遮挡裸体免费视频在线观看 | 亚洲AV无码资源在线观看| 88xx成人永久免费观看| 日本久久久久亚洲中字幕| 亚洲精品456人成在线| 蜜桃视频在线观看免费网址入口| 亚洲最大黄色网址| 国产精品免费看久久久香蕉 | 九九99热免费最新版| 成人无码区免费视频观看| 亚洲人成黄网在线观看| 成人片黄网站A毛片免费| 亚洲AV无码片一区二区三区| 日韩免费高清视频| 亚洲人成毛片线播放| 免费黄色大片网站| 亚洲黄网在线观看| 毛片在线看免费版| 四虎一区二区成人免费影院网址| 成人毛片免费观看视频| 亚洲国产成人精品青青草原| 全免费一级午夜毛片| 日韩少妇内射免费播放| 精品国产_亚洲人成在线高清| 一级毛片免费毛片一级毛片免费| 国产亚洲大尺度无码无码专线| 国产精品亚洲а∨无码播放不卡 | 亚洲国产精品VA在线看黑人| 三年片在线观看免费大全电影 | 亚洲人成高清在线播放| 国产免费无遮挡精品视频| 2020久久精品亚洲热综合一本| 精品国产麻豆免费网站| 免费看少妇高潮成人片| 久久久久久a亚洲欧洲aⅴ| 野花高清在线观看免费完整版中文| 高潮毛片无遮挡高清免费视频| 国产成人免费手机在线观看视频| 久久久久久久国产免费看| 91亚洲国产成人久久精品|