Tagsǩ սͼ
ǰλã ҳ > > VC̳ >

C++ѧϰժҪ֮캯

2012-03-04 01:44 [VC̳] Դڣ
캯ijԱ 1캯 캯constructorһijԱͬĶʱ캯

캯ijԱ

1캯

캯constructorһijԱͬĶʱ캯ϵͳԶʵֶԸöijʼ

캯зֵָvoidڵκηֵ͡

캯ĶԱĶһԷڻ⡣

캯ĶʽΪ

β˵

{}

캯ȿԶвκҲԶ޲κҪҪ

ע⣺вֱӵù캯캯ڴʱϵͳֱӵõģˣڹ캯һɳʼԱIJ

2캯

һгϵͬijԱʱΪijԱء

ijԱУȽϳʽǹ캯أгع캯ʱC++Խݹ캯еIJѡʵĹ캯ɶĹ졣

3ĬϹ캯ȱʡĹ캯

ûʾ幹캯ϵͳΪṩһĬϵĹ캯ĬϹ캯һ޲κΪգ𴴽󣬶κγʼӦݳԱֵڸĶ󴴽ʱܱ֤һȷijʼ״̬

õıϰӦǸṩʵɳʼĹ캯

ǣֻҪһඨһ캯һ޲ι캯ϵͳͲṩĬϵĹ캯

캯ȱʡʱΪȱʡĹ캯ʹþȱʡĹ캯ʱҪֹԡ

4캯

캯һĹ캯忽캯һʽΪ

const &ʽ

{ }

캯ĺͬúҲûзֵ

캯Ĺͨһֵͬһ¶ɶ¶ijʼһȥһ

Ķûж忽캯ϵͳԶһʽĬϵĿ캯ΪĹгԱ

ıǩ

Ŀб

Ƽ