B
blacwet
Unregistered / Unconfirmed
GUEST, unregistred user!
请教如何将以下c语句转成delphi语句:
定义:
typedef struct {
int XSquares;
short Corner1;
short Corner2;
} HOR2_INFO;
typedef signed char schar;
static schar *EvalPtr;
static schar *ValList[61][10];
static int FeaturePos[10];
HOR2_INFO *Hor2Ptr1, *Hor2Ptr2;
int Eval,Index1;
schar *ValPtr;
schar *Value;
语句:
EvalPtr = ValList[9][0] - FeaturePos[0] + FeaturePos[2];
Hor2Ptr2 = &Hor2Ptr1[Index1];
Eval = ValPtr[Index1];
ValList[5][5] = &Value[4];
定义:
typedef struct {
int XSquares;
short Corner1;
short Corner2;
} HOR2_INFO;
typedef signed char schar;
static schar *EvalPtr;
static schar *ValList[61][10];
static int FeaturePos[10];
HOR2_INFO *Hor2Ptr1, *Hor2Ptr2;
int Eval,Index1;
schar *ValPtr;
schar *Value;
语句:
EvalPtr = ValList[9][0] - FeaturePos[0] + FeaturePos[2];
Hor2Ptr2 = &Hor2Ptr1[Index1];
Eval = ValPtr[Index1];
ValList[5][5] = &Value[4];