討論串[問題] class中cast operator
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
Try it.. #include <iostream>. using namespace std;. class intwrapaer. {. public:. intwrapaer(int x):val(x){}. operator int ();. void print();. int ope
(還有273個字)
內容預覽:
遇到的問題: (題意請描述清楚). 在class 中 我對 int val 作強制轉型 cast operator. 題目的要求是:. class intwraper. {. public:. intwraper(int x):val(x){}. private:. int val;. };. in
(還有919個字)
首頁
上一頁
1
下一頁
尾頁