编译错误求求解
#include<stdio.h>#include<stdlib.h>
intmain (void)
{
int i,j;
int x= 1;
int y = 10;
int velocity = 1
// for (x=1;x<10;x++)
while (1)
{
if (x>10 || x<1)
velocity = -1 * velocity;
x = x + velocity;
system("clear");
for (i = 0; i<x;i++)
printf("\n");
for (j = 0; j<y;j++)
printf(" ");
printf("o\n");
}
}
~
~
~
~
~ int velocity = 1;
加上分号~ 风过无痕丶 发表于 2018-3-4 15:54
加上分号~
谢谢了,没看到有点眼瞎
页:
[1]