Mail Archives: djgpp/1998/01/13/02:33:30
HackerOC3 wrote:
>
> could you please help me with this code? I keep getting parse errors
> before int:
>
> printf("y value?");
> int y;
> scanf(" %d", &y);
> printf("color value?");
> int c;
> scanf(" %d", &c);
C is not C++; you cannot declare variables like this. instead, do:
int y,c;
printf("y value?");
scanf(" %d", &y);
printf("color value?");
scanf(" %d", &c);
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -