我试图用棋子做棋盘,但我无法获取要移动的两个棋子的坐标:
void saisie_deplacement(int color)
{
char lettre[8]={'A','B','C','D','E','F','G','H'};
deplacement theMove;
char L,L1;
int x,x1,y,y1;
printf("\n\n\nType the 1st piece's Letter.\n");
scanf(" %c", &L);
x = L;
x = x-'A';
printf("\n%i\n", x);
printf("\nType the 1st piece figure\n");
scanf(" %i", &y);
printf("\nType the 2nd piece letter\n");
scanf(" %c", &L1);
x1= L1;
x1=x1 - 'A';
printf("\n%i\n", x1);
printf("\n\n\nType the 2nd piece figure\n");
scanf(" %i", &y1);
theMove.depart.ligne = x;
theMove.depart.colonne = y;
theMove.arrivee.ligne = x1;
theMove.arrivee.colonne = y1;
}
我不知道如何退货。否则,CodeBlocks告诉我::>
||=== Build file: "no target" in "no project" (compiler: unknown) ===| ld.exe||cannot open output file C:\Users\ThomasB\Desktop\TP AP2\tpregled.exe Permission denied| ||error: ld returned 1 exit status| ||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
然后,我无法在不更改.exe文件名的情况下进行编译。看来我的程序在ntoskrnl.exe中保持打开状态
你们知道我应该怎么做吗? :)
[我正在尝试用棋子做棋盘,但我无法设法移动两个棋子的坐标:void saisie_deplacement(int color){char lettre [8] = {'A','B', 'C','D','E',...
要返回theMove
,请执行以下操作: