锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国内精品免费久久影院,狠狠色丁香婷综合久久,激情综合色综合久久综合http://www.shnenglu.com/palm/category/16186.htmlzh-cnMon, 07 Mar 2011 06:42:38 GMTMon, 07 Mar 2011 06:42:38 GMT60C++椋庢牸鐨勭被鍨嬭漿鎹?/title><link>http://www.shnenglu.com/palm/archive/2011/03/07/141272.html</link><dc:creator>閮皬甯?/dc:creator><author>閮皬甯?/author><pubDate>Mon, 07 Mar 2011 06:28:00 GMT</pubDate><guid>http://www.shnenglu.com/palm/archive/2011/03/07/141272.html</guid><wfw:comment>http://www.shnenglu.com/palm/comments/141272.html</wfw:comment><comments>http://www.shnenglu.com/palm/archive/2011/03/07/141272.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/palm/comments/commentRss/141272.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/palm/services/trackbacks/141272.html</trackback:ping><description><![CDATA[ C++鏈夊洓縐嶇被鍨嬭漿鎹㈡搷浣滅錛歴tatic_cast銆乧onst_cast銆乨ynamic_cast銆乺einterpret_cast銆?div>1>. static_cast鏅氳漿鎹紝濡俤ouble杞琲nt錛?/div><div><table id="Table1" class="tb" cellspacing="0" cellpadding="3" border="0" style="font-size: 13px; "><tbody><tr><td><pre><div><span style="color: rgb(0, 128, 128); ">1</span> <span style="color: rgb(0, 0, 255); ">double</span><span style="color: rgb(0, 0, 0); "> a </span><span style="color: rgb(0, 0, 0); ">=</span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 0); ">10</span><span style="color: rgb(0, 0, 0); ">; </span><span style="color: rgb(0, 128, 128); ">2</span> <span style="color: rgb(0, 0, 0); "></span><span style="color: rgb(0, 0, 255); ">int</span><span style="color: rgb(0, 0, 0); "> b </span><span style="color: rgb(0, 0, 0); ">=</span><span style="color: rgb(0, 0, 0); "> static_cast</span><span style="color: rgb(0, 0, 0); "><</span><span style="color: rgb(0, 0, 255); ">int</span><span style="color: rgb(0, 0, 0); ">></span><span style="color: rgb(0, 0, 0); ">(a);</span></div></pre></td></tr></tbody></table></div><div>2>. const_cast鏀瑰彉const鎴栬卾olatile灞炴?</div><div><span style="font-size: 13px; "><pre><div><span style="color: rgb(0, 128, 128); ">1</span> <span style="color: rgb(0, 0, 255); ">const</span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">char</span><span style="color: rgb(0, 0, 0); ">*</span><span style="color: rgb(0, 0, 0); "> szA </span><span style="color: rgb(0, 0, 0); ">=</span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 0); ">"</span><span style="color: rgb(0, 0, 0); ">test</span><span style="color: rgb(0, 0, 0); ">"</span><span style="color: rgb(0, 0, 0); ">; </span><span style="color: rgb(0, 128, 128); ">2</span> <span style="color: rgb(0, 0, 0); "></span><span style="color: rgb(0, 0, 255); ">char</span><span style="color: rgb(0, 0, 0); ">*</span><span style="color: rgb(0, 0, 0); "> szB </span><span style="color: rgb(0, 0, 0); ">=</span><span style="color: rgb(0, 0, 0); "> const_cast</span><span style="color: rgb(0, 0, 0); "><</span><span style="color: rgb(0, 0, 255); ">char</span><span style="color: rgb(0, 0, 0); ">*></span><span style="color: rgb(0, 0, 0); ">(szA);</span></div></pre></span></div><div>3>. dynamic_cast鎶婃寚鍚戝熀綾葷殑鎸囬拡鎴栧紩鐢ㄨ漿鎹㈡垚鎸囧悜媧劇敓綾繪垨鑰呭熀綾葷殑鍏勫紵綾葷殑鎸囬拡鎴栧紩鐢細</div><div><table id="Table1" class="tb" cellspacing="0" cellpadding="3" border="0" style="font-size: 13px; "><tbody><tr><td><pre><div><span style="color: rgb(0, 128, 128); "> 1</span> <span style="color: rgb(0, 0, 255); ">class</span><span style="color: rgb(0, 0, 0); "> Base </span><span style="color: rgb(0, 128, 128); "> 2</span> <span style="color: rgb(0, 0, 0); ">{ </span><span style="color: rgb(0, 128, 128); "> 3</span> <span style="color: rgb(0, 0, 0); "></span><span style="color: rgb(0, 0, 255); ">public</span><span style="color: rgb(0, 0, 0); ">: </span><span style="color: rgb(0, 128, 128); "> 4</span> <span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">virtual</span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">void</span><span style="color: rgb(0, 0, 0); "> test(){} </span><span style="color: rgb(0, 128, 0); ">//</span><span style="color: rgb(0, 128, 0); ">鍩虹被蹇呴』鏈夎櫄鍑芥暟</span><span style="color: rgb(0, 128, 0); "> </span><span style="color: rgb(0, 128, 128); "> 5</span> <span style="color: rgb(0, 128, 0); "></span><span style="color: rgb(0, 0, 0); ">}; </span><span style="color: rgb(0, 128, 128); "> 6</span> <span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 128); "> 7</span> <span style="color: rgb(0, 0, 0); "></span><span style="color: rgb(0, 0, 255); ">class</span><span style="color: rgb(0, 0, 0); "> Child : </span><span style="color: rgb(0, 0, 255); ">public</span><span style="color: rgb(0, 0, 0); "> Base </span><span style="color: rgb(0, 128, 128); "> 8</span> <span style="color: rgb(0, 0, 0); ">{ </span><span style="color: rgb(0, 128, 128); "> 9</span> <span style="color: rgb(0, 0, 0); "></span><span style="color: rgb(0, 0, 255); ">public</span><span style="color: rgb(0, 0, 0); ">: </span><span style="color: rgb(0, 128, 128); ">10</span> <span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">void</span><span style="color: rgb(0, 0, 0); "> print(){ cout </span><span style="color: rgb(0, 0, 0); "><<</span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 0); ">"</span><span style="color: rgb(0, 0, 0); ">child::base</span><span style="color: rgb(0, 0, 0); ">"</span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 0); "><<</span><span style="color: rgb(0, 0, 0); "> endl; } </span><span style="color: rgb(0, 128, 128); ">11</span> <span style="color: rgb(0, 0, 0); ">}; </span><span style="color: rgb(0, 128, 128); ">12</span> <span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 128); ">13</span> <span style="color: rgb(0, 0, 0); ">Base</span><span style="color: rgb(0, 0, 0); ">*</span><span style="color: rgb(0, 0, 0); "> pBase </span><span style="color: rgb(0, 0, 0); ">=</span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">new</span><span style="color: rgb(0, 0, 0); "> Base(); </span><span style="color: rgb(0, 128, 128); ">14</span> <span style="color: rgb(0, 0, 0); ">Child</span><span style="color: rgb(0, 0, 0); ">*</span><span style="color: rgb(0, 0, 0); "> pChild </span><span style="color: rgb(0, 0, 0); ">=</span><span style="color: rgb(0, 0, 0); "> dynamic_cast</span><span style="color: rgb(0, 0, 0); "><</span><span style="color: rgb(0, 0, 0); ">Child</span><span style="color: rgb(0, 0, 0); ">*></span><span style="color: rgb(0, 0, 0); ">(pBase); </span><span style="color: rgb(0, 128, 128); ">15</span> <span style="color: rgb(0, 0, 0); ">pChild</span><span style="color: rgb(0, 0, 0); ">-></span><span style="color: rgb(0, 0, 0); ">print();</span></div></pre></td></tr></tbody></table></div><div>4>. reinterpret_cast鐢ㄦ潵鍦ㄥ嚱鏁版寚閽堜箣闂磋繘琛岀被鍨嬭漿鎹?/div><div><font face="monospace" size="2"><span style="white-space: pre;"><span style="font-family: Simsun; white-space: normal; font-size: 13px; "><pre><div><span style="color: rgb(0, 128, 128); ">1</span> <span style="color: rgb(0, 0, 0); ">typedef </span><span style="color: rgb(0, 0, 255); ">void</span><span style="color: rgb(0, 0, 0); "> (</span><span style="color: rgb(0, 0, 0); ">*</span><span style="color: rgb(0, 0, 0); ">FuncPtr)(); </span><span style="color: rgb(0, 128, 128); ">2</span> <span style="color: rgb(0, 0, 0); ">FuncPtr funcPtrArray[</span><span style="color: rgb(0, 0, 0); ">10</span><span style="color: rgb(0, 0, 0); ">]; </span><span style="color: rgb(0, 128, 128); ">3</span> <span style="color: rgb(0, 0, 0); "></span><span style="color: rgb(0, 0, 255); ">int</span><span style="color: rgb(0, 0, 0); "> doSomeing(){</span><span style="color: rgb(0, 0, 255); ">return</span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 0); ">0</span><span style="color: rgb(0, 0, 0); ">;} </span><span style="color: rgb(0, 128, 128); ">4</span> <span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 128); ">5</span> <span style="color: rgb(0, 0, 0); ">funcPtrArray[</span><span style="color: rgb(0, 0, 0); ">0</span><span style="color: rgb(0, 0, 0); ">] </span><span style="color: rgb(0, 0, 0); ">=</span><span style="color: rgb(0, 0, 0); "> reinterpret_cast</span><span style="color: rgb(0, 0, 0); "><</span><span style="color: rgb(0, 0, 0); ">FuncPtr</span><span style="color: rgb(0, 0, 0); ">></span><span style="color: rgb(0, 0, 0); ">(</span><span style="color: rgb(0, 0, 0); ">&</span><span style="color: rgb(0, 0, 0); ">doSomeing);</span></div></pre></span></span></font></div><img src ="http://www.shnenglu.com/palm/aggbug/141272.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/palm/" target="_blank">閮皬甯?/a> 2011-03-07 14:28 <a href="http://www.shnenglu.com/palm/archive/2011/03/07/141272.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.bagscheap.cn" target="_blank">亚洲精品无码久久不卡</a>| <a href="http://www.ryzd.com.cn" target="_blank">AV无码久久久久不卡蜜桃</a>| <a href="http://www.114out.cn" target="_blank">日韩欧美亚洲综合久久影院Ds</a>| <a href="http://www.schoenhut.com.cn" target="_blank">精品久久久久久久</a>| <a href="http://www.zwdl.com.cn" target="_blank">久久综合给合久久国产免费</a>| <a href="http://www.5uatm.cn" target="_blank">婷婷五月深深久久精品</a>| <a href="http://www.dafa888da.cn" target="_blank">国产69精品久久久久777</a>| <a href="http://www.mothersenvogue.com.cn" target="_blank">A狠狠久久蜜臀婷色中文网</a>| <a href="http://www.symedia.com.cn" target="_blank">久久综合丁香激情久久</a>| <a href="http://www.9bexgq.cn" target="_blank">久久久免费观成人影院</a>| <a href="http://www.39xw.cn" target="_blank">久久99精品久久久久久hb无码</a>| <a href="http://www.airgig.net.cn" target="_blank">亚洲国产天堂久久综合网站</a>| <a href="http://www.mingfeiyaye.cn" target="_blank">一本色综合久久</a>| <a href="http://www.mobilepop.cn" target="_blank">国产精品美女久久久m</a>| <a href="http://www.zhuaibo.cn" target="_blank">蜜桃麻豆www久久国产精品</a>| <a href="http://www.atlasbl.cn" target="_blank">蜜臀av性久久久久蜜臀aⅴ</a>| <a href="http://www.wangjunyao.cn" target="_blank">中文精品久久久久国产网址</a>| <a href="http://www.k8movie.cn" target="_blank">无码任你躁久久久久久老妇</a>| <a href="http://www.xbfid.cn" target="_blank">久久w5ww成w人免费</a>| <a href="http://www.ssc980.cn" target="_blank">久久综合九色欧美综合狠狠</a>| <a href="http://www.bjzfw.cn" target="_blank">亚洲成色www久久网站夜月</a>| <a href="http://www.08fq.cn" target="_blank">久久精品18</a>| <a href="http://www.a88wx.cn" target="_blank">久久―日本道色综合久久</a>| <a href="http://www.x705.cn" target="_blank">精品多毛少妇人妻AV免费久久</a>| <a href="http://www.liru56.cn" target="_blank">99久久99这里只有免费费精品 </a>| <a href="http://www.mx3g.cn" target="_blank">青草影院天堂男人久久</a>| <a href="http://www.1hkl.cn" target="_blank">7777久久久国产精品消防器材</a>| <a href="http://www.ccjump.cn" target="_blank">久久综合丁香激情久久</a>| <a href="http://www.frwg.net.cn" target="_blank">久久精品国产99久久久</a>| <a href="http://www.myloveshop.com.cn" target="_blank">日韩精品久久久久久久电影</a>| <a href="http://www.kklnpfvjt.cn" target="_blank">亚洲国产成人久久综合碰碰动漫3d</a>| <a href="http://www.mdg163.cn" target="_blank">香蕉久久影院</a>| <a href="http://www.zzyes.cn" target="_blank">久久精品国内一区二区三区</a>| <a href="http://www.mlbj.net.cn" target="_blank">久久久亚洲裙底偷窥综合</a>| <a href="http://www.kxtravel.com.cn" target="_blank">久久久久国产亚洲AV麻豆</a>| <a href="http://www.yrjiameng.cn" target="_blank">精品一区二区久久久久久久网站</a>| <a href="http://www.nokia-flash.cn" target="_blank">久久亚洲精品无码aⅴ大香</a>| <a href="http://www.yrdfund.com.cn" target="_blank">亚洲国产精品一区二区三区久久 </a>| <a href="http://www.tvue.cn" target="_blank">久久最近最新中文字幕大全</a>| <a href="http://www.1webproxy.cn" target="_blank">亚洲精品乱码久久久久久蜜桃不卡</a>| <a href="http://www.cqxuexi.cn" target="_blank">久久免费视频6</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>