提示有两个错误,不知道在哪
#include<stdio.h>#include <windows.h>
int main()
{
int x=6;
int y=10;
int i,j;
//i=3;j=3;
int speed,speed1,top,bot;
speed=1;
while(1)
{
if((i<1)||(i>6)){speed=-speed}
if((j<1)||(j>10)){speed=-speed}
x=x+speed;
y=y+speed;
system("cls");
for(j=1;j<=y;j++)
printf("\n");
for(i=1;i<=x/2;i++)
printf(" ");
printf("o");
}
return 0;
}