討論串[語法] 如何將許多同性質變數整合在一起?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
class Fruit {. public:. string Name;. int Number;. };. class Drink {. public:. string Name;. int Number;. };. class Icebox {. public:. vector<Fruit> F
(還有305個字)
內容預覽:
假設我有一個類別,裡面有一些相同性質的變數. 我想將他們整合在一起,請問有沒有其他方法. 1.原本是這樣 2.有沒有除了這個以外的方法. class icebox{ class Fruit{. public: public:. //水果 int apple ;. int apple ; int or
(還有163個字)
首頁
上一頁
1
下一頁
尾頁