锘??xml version="1.0" encoding="utf-8" standalone="yes"?>美女久久久久久,亚洲成人av高清,亚洲第一av在线http://www.aygfsteel.com/iceboundrock/archive/2006/11/25/83459.htmliceboundrockiceboundrockSat, 25 Nov 2006 08:08:00 GMThttp://www.aygfsteel.com/iceboundrock/archive/2006/11/25/83459.htmlhttp://www.aygfsteel.com/iceboundrock/comments/83459.htmlhttp://www.aygfsteel.com/iceboundrock/archive/2006/11/25/83459.html#Feedback1http://www.aygfsteel.com/iceboundrock/comments/commentRss/83459.htmlhttp://www.aygfsteel.com/iceboundrock/services/trackbacks/83459.html C++ 鍜?/span> C#/java 鏈夊緢澶氬尯鍒紝鍏朵腑鏈澶х殑鍖哄埆褰撴暟瀵瑰唴瀛樼殑綆$悊銆?/span>

C++ 涓紝綾葷殑浣跨敤鑰呭喅瀹氫簡綾葷殑瀹炰緥鍐呭瓨浼氬浣曞垎閰嶏紝鍒嗛厤鍦ㄥ爢涓婅繕鏄爤涓娿傛垜浠厛鐪嬩竴孌典緥瀛愮▼搴忥細

#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++ 涓紝瀵硅薄澹版槑鐨勬椂鍊欏氨宸茬粡鎵ц浜嗘瀯閫犲嚱鏁幫紝姣斿涓婇潰渚嬪瓙鐨?/span> main 鍑芥暟涓殑絎竴琛岋紝 Demo d 錛屼粠灞忓箷涓婄殑杈撳嚭鏉ョ湅錛岃繖涓椂鍊?/span> Demo class 鐨勯粯璁ゆ瀯閫犲嚱鏁頒細琚皟鐢ㄣ?/span>

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

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

鏁堢巼鏈濂界殑鏂規硶褰撴暟榪斿洖鎸囬拡浜嗭紝瀹冧笉浼氬鑷村璞″鍒訛紝濡傛灉浣跨敤寰楀綋錛屼篃涓嶄細瀵艱嚧鍐呭瓨娉勬紡鎴栬呭彞鏌勬硠婕忋?/span> testMethod2 婕旂ず浜嗚繖縐嶆儏鍐碉紝褰撶劧錛屼綘闇瑕佹墜宸ュ垹闄ゅ湪 testMethod2 涓垱寤虹殑瀵硅薄銆?/span>



]]>
C++涓夯鐑︾殑const錛?錛?/title><link>http://www.aygfsteel.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.aygfsteel.com/iceboundrock/archive/2006/11/22/82825.html</guid><wfw:comment>http://www.aygfsteel.com/iceboundrock/comments/82825.html</wfw:comment><comments>http://www.aygfsteel.com/iceboundrock/archive/2006/11/22/82825.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/iceboundrock/comments/commentRss/82825.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/iceboundrock/services/trackbacks/82825.html</trackback:ping><description><![CDATA[ <p>鍏充簬const錛孋++鐨刢onst鏄竴涓潪甯擱潪甯擱夯鐑︾殑鍏抽敭瀛楋紝浣嗘槸濡傛灉浣犱笉鐢紝涔熶細甯︽潵涓浜涢夯鐑︺?/p> <p>涓嬮潰涓孌電畝鍗曠殑紼嬪簭錛屾紨紺轟簡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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">聽3</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">聽4</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">聽8</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">10</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">12</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">14</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">16</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽Int3聽</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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽<br /></span> <span style="COLOR: #008080">18</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">21</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">23</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.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">,聽Int3);<br /></span> <span style="COLOR: #008080">28</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">29</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.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.aygfsteel.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.aygfsteel.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.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">33</span> <span style="COLOR: #000000"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> </span> </div> <p> <br />鏈綆鍗曟渶娓呮櫚鐨刢onst浣跨敤鏂規硶灝辨槸澹版槑const鍙橀噺浜嗭紝鍙橀噺闇瑕佸湪鐢熷懡鐨勫湴鏂圭珛鍗沖垵濮嬪寲錛屽垵濮嬪寲瀹屾垚涔嬪悗灝變笉鑳藉啀鏀逛簡銆?/p> <p>濡傛灉浣犵敤鍚屾牱鐨勬濊礬鏉ョ湅寰卌onst鎸囬拡錛屼綘浼氬彂鐜頒綘閿欑殑寰堜弗閲嶏紝浣犵湅錛岃繖涓猚onstIntPoint鎹簡鍑犱釜鐩爣渚濈劧鐢熼緳媧昏檸錛岀紪璇戝櫒寰堟剦蹇殑鎺ュ彈浜嗚繖孌典唬鐮侊紝榪炰釜warn閮芥病鏈夈?br />鍘熸潵const鎸囬拡鏄寚鍚慶onst鍙橀噺鐨勬寚閽堬紝鑰屼笉鏄鎸囬拡鏈韓鏄痗onst鐨勩傛棤</p> <p>ok錛宑onst鍙橀噺涓嶈兘鐩存帴淇敼錛岄毦閬撴垜鍙栧埌浠栫殑鍦板潃錛屽啀鏉ヤ慨鏀歸兘涓嶈涔堬紵涓嶈錛岀紪璇戝櫒浼氱洿鎺ュ憡璇変綘錛屾棤娉曟妸涓涓猚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.aygfsteel.com/iceboundrock/aggbug/82825.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/iceboundrock/" target="_blank">iceboundrock</a> 2006-11-22 17:03 <a href="http://www.aygfsteel.com/iceboundrock/archive/2006/11/22/82825.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>閲嶆嬀C++http://www.aygfsteel.com/iceboundrock/archive/2006/11/22/82813.htmliceboundrockiceboundrockWed, 22 Nov 2006 08:34:00 GMThttp://www.aygfsteel.com/iceboundrock/archive/2006/11/22/82813.htmlhttp://www.aygfsteel.com/iceboundrock/comments/82813.htmlhttp://www.aygfsteel.com/iceboundrock/archive/2006/11/22/82813.html#Feedback0http://www.aygfsteel.com/iceboundrock/comments/commentRss/82813.htmlhttp://www.aygfsteel.com/iceboundrock/services/trackbacks/82813.html鎵撶畻鍊熺潃榪欐澶嶄範鏁版嵁緇撴瀯涓庣畻娉曠殑鏈轟細閲嶆嬀C++銆備粖澶╁仛浜嗕袱涓鍣ㄧ被錛屽彂鐜板緢澶氬熀紜璇硶鐨勪笢瑗挎垜閮藉凡璁板緱緇忔ā媯變袱鍙簡錛宻igh錛岀湅鏉ョ湡鏄鍔姏鎵嶈浜嗐?img src ="http://www.aygfsteel.com/iceboundrock/aggbug/82813.html" width = "1" height = "1" />

iceboundrock 2006-11-22 16:34 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 怀仁县| 江口县| 西畴县| 龙里县| 农安县| 临邑县| 定日县| 临高县| 武穴市| 扶沟县| 云林县| 隆昌县| 锡林郭勒盟| 德令哈市| 山阳县| 光泽县| 博客| 武山县| 长白| 弋阳县| 兰坪| 四子王旗| 习水县| 松桃| 稷山县| 宁南县| 祁连县| 赞皇县| 平湖市| 泌阳县| 安化县| 锦屏县| 昌吉市| 尼玛县| 云阳县| 龙口市| 阿坝| 巴塘县| 政和县| 轮台县| 衡南县|