1、C++函數(shù)的帶默認(rèn)值的參數(shù)只能在函數(shù)參數(shù)的最右側(cè);
2、帶默認(rèn)值的函數(shù)在聲明時(shí)就寫(xiě)出默認(rèn)值,實(shí)現(xiàn)時(shí)不需寫(xiě)出默認(rèn)值。
George World技術(shù)改變明天,創(chuàng)新塑造未來(lái)! i(at)huadev.com Follow Me: http://t.sina.com.cn/georgeworld |
1、C++函數(shù)的帶默認(rèn)值的參數(shù)只能在函數(shù)參數(shù)的最右側(cè);
2、帶默認(rèn)值的函數(shù)在聲明時(shí)就寫(xiě)出默認(rèn)值,實(shí)現(xiàn)時(shí)不需寫(xiě)出默認(rèn)值。
只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。 | ||
![]() |
||
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問(wèn)
管理
|
||