原创 C++筆記

1.引用傳遞, void swap(int &a,int &b){ int c=a; a=b; b=c; } int x=5,y=6; swap(x,y);   2,構造函數需要有實現方法,傳入參數與類成員變量, 構造方法的