why does this work with out errors
include "stdio"
main()
{
int charin;
while ( (charin = getchar())!=32)
putchar(charin);
}
but when i add it to the program i get an identifier expected in a type declaration
#include "stdio"
void drawLine()
{
int y;
int x;
y=30;
gotoxy(1,1);
for (x = 0; x < 180; x++){
printf("the value of x is %d ",x);
}
}
int main()
{
int charin;
clearscr();
gotoxy(10,5);
printf("Hello World from Vintage is The New Old!\n");
drawLine();
gotoxy(35,15);
printf("Press <ENTER> to finish...");
while ( (charin = getchar()) !=32)
putchar(charin);
return 0;

