close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
C++程式高手幫幫忙
Jun 17th 2013, 15:03

參照與參照參數
1.使用傳值呼叫傳遞引數時,會產生引數值的副本,並將他傳給貝呼叫的函式。對副本的任何改變不會影響呼叫函式中原始變數的值。
2.使用傳參考呼叫時,被呼叫的函式能直接存取及修改呼叫者的資料。
3.參照參數(reference parameter)可視為函式呼叫中對應引述的別名。
4.要指定某個函式的參數是傳參考呼叫,寫法是在函式原型的參數型別之後加上&符號。
5.對參照進行的任何操作都會作用到原始的變數上。

簡單寫程式會但是這題太難了@@
是否有高手會。

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜

    linevpn 發表在 痞客邦 留言(0) 人氣()