示例1: pycallclass.cpp: #include iostreamusing namespace std;typedef unsigned char BYTE;#define MAX_COUNT 20 struct tagOutCardResult_py{BYTEcbCardCount;BYTEcbResultCard1;BYTEcbResultCard2;BYTEcbResultCard3;BYTEcbResultCard4;BYTEcbResultCard5;BYTEcbResultCard6;BYTEcbResultCard7;BYTEcbResultCard8;BYTEcbResultCard9;BYTEcbResultCard10;BYTEcbResultCard11;BYTEcbResultCard12;BYTEcbResultCard13;BYTEcbResultCard14;BYTEcbResultCard15;BYTEcbResultCard16;BYTEcbResultCard17;BYTEcbResultCard18;BYTEcbResultCard19;BYTEcbResultCard20;}; struct tagOutCardResult{BYTEcbCardCount;BYTEcbResultCard[MAX_COUNT];void clear(){cbCardCount = 0;for (int nIdx = 0;nIdx MAX_COUNT;++nIdx){cbResultCard[nIdx] = 0;}}void topy(tagOutCardResult_py* ppy){cout"topy function begin"endl;ppy-cbCardCount = cbCardCount;cout"topy function 1"endl;ppy-cbResultCard1 = cbResultCard[1 - 1];cout"topy function 2"endl;ppy-cbResultCard2 = cbResultCard[2 - 1];ppy-cbResultCard3 = cbResultCard[3 - 1];ppy-cbResultCard4 = cbResultCard[4 - ……
python用法-python或者的表示方式和用法
最新推荐文章于 2024-04-22 20:52:13 发布