1. unsigned in 和int相加時,要把int轉化爲unsignedint,結果肯定爲正數。但是如果兩者相加結果用int承接,那麼結果正負就要看int的大小了。
默認構造函數
析構函數
拷貝構造函數
賦值運算符(operator=)
取址運算符(operator&)(一對,一個非const的,一個const的)
1. unsigned in 和int相加時,要把int轉化爲unsignedint,結果肯定爲正數。但是如果兩者相加結果用int承接,那麼結果正負就要看int的大小了。
默認構造函數
析構函數
拷貝構造函數
賦值運算符(operator=)
取址運算符(operator&)(一對,一個非const的,一個const的)