int x=4;
int y=65;
int *q;
q=loca_card(int &x,int &y);
int *loca_card(int &x,int &y)
{
int j=0;
int i=0;
int mycard[2];
int *q;
q=mycard;
unsigned int keycode;
while(1){
if((keycode=all_key())==DOWN_ARROW&&i<=0){
i=i+1;
y=y+60;
setcolor(WHITE);
rectangle(x,y-60,x+40,y-10);
setcolor(GREEN);
rectangle(x,y,x+40,y+50);
}
if(keycode==UP_ARROW&&i>0){
i=i-1;
y=y-60;
setcolor(WHITE);
rectangle(x,y+60,x+40,y+110);
setcolor(GREEN);
rectangle(x,y,x+40,y+50);
line(535,85+j*50,625,85+j*50);
}
if(keycode==RIGHT_ARROW&&j<=6){
j=j+1;
x=x+50;
setcolor(WHITE);
rectangle(x-50,y,x-10,y+50);
setcolor(GREEN);
rectangle(x,y,x+40,y+50);
}
if(keycode==LEFT_ARROW&&j>0){
j=j-1;
x=x-50;
setcolor(WHITE);
rectangle(x+50,y,x+90,y+50);
setcolor(GREEN);
rectangle(x,y,x+40,y+50);
}
if(keycode==DELETE){
break;
}
}
mycard[0]=i;
mycard[1]=j;
return q;
}
q=loca_card(int &x,int &y); 这句 expression syntax错误 为啥呢
慕标5832272
交互式爱情
相关分类