Mail Archives: djgpp/2000/10/10/15:38:43
from: Johan Henriksson, leadprogrammer @ www.realsoftware.cjb.net
"It is not the length of life that counts but what you make out of it" - me
----------------------------------------------------------------------------
-----------------------------
> Hello,
>
> I have a c programming question:
>
> for the following statement (highlighted in Red) I am getting the error:
Prog3_3.cpp(24) Error: Parse error >before '('
That sux because I have colors disabled. I give it a shot.
> the statement is:
>
> for (Count=0;Count<20;Count ++)
>
> {
> printf("\nEnter a number between 10 and 100 (no duplicates) %d;",
Count+1);
> scanf("%d", &Numbers[Count]);
> int If((Numbers[Count]>10)&&(Numbers[Count]<100))
This line? Two errors?
Int - What is that doing there???
If - Big 'I' = Bad
> printf("\nNumber is between 10 and 100");
> else
> printf("\nNumber is not between 10 and 100");
> }
>
> Can you give me a pointer on why this is doing this, thanks.
>
>
- Raw text -