锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国内精品免费久久影院,狠狠色丁香婷综合久久,激情综合色综合久久综合http://m.shnenglu.com/palm/category/16186.htmlzh-cnMon, 07 Mar 2011 06:42:38 GMTMon, 07 Mar 2011 06:42:38 GMT60C++椋庢牸鐨勭被鍨嬭漿鎹?/title><link>http://m.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://m.shnenglu.com/palm/archive/2011/03/07/141272.html</guid><wfw:comment>http://m.shnenglu.com/palm/comments/141272.html</wfw:comment><comments>http://m.shnenglu.com/palm/archive/2011/03/07/141272.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/palm/comments/commentRss/141272.html</wfw:commentRss><trackback:ping>http://m.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://m.shnenglu.com/palm/aggbug/141272.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/palm/" target="_blank">閮皬甯?/a> 2011-03-07 14:28 <a href="http://m.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://m.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.gpci.cn" target="_blank">模特私拍国产精品久久</a>| <a href="http://www.yxwelding.com.cn" target="_blank">久久精品九九亚洲精品天堂</a>| <a href="http://www.6talent.cn" target="_blank">久久青青国产</a>| <a href="http://www.sxttzs.cn" target="_blank">欧洲人妻丰满av无码久久不卡</a>| <a href="http://www.bbs020.cn" target="_blank">精品国产乱码久久久久久郑州公司</a>| <a href="http://www.ssgov.cn" target="_blank">久久精品国产精品亚洲精品</a>| <a href="http://www.huating.net.cn" target="_blank">国内精品伊人久久久久网站</a>| <a href="http://www.789ff.cn" target="_blank">久久精品免费一区二区</a>| <a href="http://www.senbozulin.com.cn" target="_blank">国产精品久久网</a>| <a href="http://www.dittoit800.cn" target="_blank">色老头网站久久网</a>| <a href="http://www.theys.cn" target="_blank">99久久99久久精品国产片</a>| <a href="http://www.jn249.cn" target="_blank">久久久久久久精品成人热色戒</a>| <a href="http://www.sklly.cn" target="_blank">一级做a爱片久久毛片</a>| <a href="http://www.duteng888.com.cn" target="_blank">久久无码专区国产精品发布</a>| <a href="http://www.uubux.com.cn" target="_blank">麻豆精品久久精品色综合</a>| <a href="http://www.z-yh.cn" target="_blank">97精品伊人久久久大香线蕉</a>| <a href="http://www.ysaoyx.cn" target="_blank">热99re久久国超精品首页</a>| <a href="http://www.gongyeyongbu.com.cn" target="_blank">久久久无码精品亚洲日韩京东传媒 </a>| <a href="http://www.kcxe.cn" target="_blank">久久久精品国产Sm最大网站</a>| <a href="http://www.sanling-group.com.cn" target="_blank">欧美久久综合九色综合</a>| <a href="http://www.2782yh.cn" target="_blank">…久久精品99久久香蕉国产</a>| <a href="http://www.yndi.com.cn" target="_blank">亚洲精品国精品久久99热</a>| <a href="http://www.990w.cn" target="_blank">国产呻吟久久久久久久92</a>| <a href="http://www.zhougong.net.cn" target="_blank">亚洲国产精品成人久久</a>| <a href="http://www.yundali.cn" target="_blank">亚洲欧洲久久av</a>| <a href="http://www.fifacn.cn" target="_blank">亚洲国产成人精品91久久久 </a>| <a href="http://www.55542.com.cn" target="_blank">99久久国产免费福利</a>| <a href="http://www.sbznw.cn" target="_blank">久久精品国产精品亚洲毛片</a>| <a href="http://www.baoshuidaili.com.cn" target="_blank">久久久久亚洲精品日久生情</a>| <a href="http://www.shuntai.net.cn" target="_blank">午夜视频久久久久一区</a>| <a href="http://www.ccum.cn" target="_blank">欧洲国产伦久久久久久久</a>| <a href="http://www.hejz.cn" target="_blank">人妻无码久久精品</a>| <a href="http://www.mingqingrong.cn" target="_blank">久久精品亚洲男人的天堂</a>| <a href="http://www.safenote.cn" target="_blank">久久国产视屏</a>| <a href="http://www.fnhihs.cn" target="_blank">久久亚洲国产成人影院网站 </a>| <a href="http://www.qhcl233.cn" target="_blank">精品国产综合区久久久久久</a>| <a href="http://www.pd2n.cn" target="_blank">久久久青草久久久青草</a>| <a href="http://www.qcb8.cn" target="_blank">青青草国产精品久久</a>| <a href="http://www.more1.cn" target="_blank">国产综合免费精品久久久</a>| <a href="http://www.matchweb.cn" target="_blank">免费一级做a爰片久久毛片潮</a>| <a href="http://www.weixinqun688.cn" target="_blank">久久久久久一区国产精品</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>