C++???????????????
???????????? ???????[ 2016/2/16 13:41:37 ] ????????C++
????__property?????????????????????????????????Borland?C++Builder???????????????????????????????????
?????????????
??????????????????????
????class TMyClass
????{
????private:
????int data;
????public:
????int GetData() { return data; }
????void SetData(int iData) { data = iData; }
????};
????TMyClass MyClass;
????int myData;
????myData = MyClass.GetData(); //?????????????
????MyClass.SetData(myData); //д???????????
?????????????????????
????class TMyClass
????{
????private:
????int Fdata;
????int GetData(){ return Fdata; }
????void SetData(int iData){ Fdata = iData; }
????public:
????__property int Data = {read = GetData?? write = SetData};
????};
????TMyClass MyClass;
????int myData;
????myData = MyClass.Data; //????????????
????MyClass.Data = myData; //д??????????
?????????????????????????????????????????????Fdata??????????????????д????????????в???????
?????????Data??????????GetData??SetData????????????????????????????????????????????????????д???????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11