首先谢谢各位的热心
回雪克大侠:我程序调试都是build后再运行的,因为不知道make后就可以,汗~~
源代码:
int an;
bool st;
int *at;
long *aw;
int axn;
int at1;
long aw1;
at=&at1;
aw=&aw1;
int at2;
long aw2;
int cou;
TEdit *EditA;
TEdit *EditAW;
if (st)
{
at2=at1;
aw2=aw1;
EditAW->Text=IntToStr(aw1);
switch (at1)
{
case 1:
EditA->Text= "单轴单轮";
break;
case 2:
EditA->Text="单轴双轮";
break;
case 3:
EditA->Text="双联轴单轮";
break;
case 4:
EditA->Text="双联轴单双轮";
break;
case 5:
EditA->Text="双联轴双轮";
break;
case 6:
EditA->Text="三联轴单轮";
break;
case 7:
EditA->Text="三联轴双轮";
break;
}
}
else
EditA->Text="error";
}
后来还出了好多类似的错误,害的我调了整整一夜:( ,最后只有这样才解决,但是很想知道为什么
static int an;
bool st;
static int *at;
static long *aw;
int axn;
static int at1;
static long aw1;
at=&at1;
aw=&aw1;
int at2;
long aw2;
static int cou;
String axletype[8],AxleWt[7],AxleTyp[7];
axletype[1]="单轴单轮";
axletype[2]="单轴双轮";
axletype[3]="双联轴单轮";
axletype[4]="双联轴单双轮";
axletype[5]="双联轴双轮";
axletype[6]="三联轴单轮";
axletype[7]="三联轴双轮";