delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/09/18:33:17

Message-ID: <001701c03240$9e9c19e0$6866fea9@desktop>
From: "Steven C. Hendrickson" <stevenhend01 AT earthlink DOT net>
To: <djgpp AT delorie DOT com>
References: <01C031F3 DOT 9F9DB260 DOT scottferg1 AT earthlink DOT net>
Subject: Re: C Programming Question
Date: Mon, 9 Oct 2000 15:31:03 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Reply-To: djgpp AT delorie DOT com

You have a Capital 'I' in your 'if()' statement.  Maybe that is part of it,
along with the 'int' before the 'If' .

good luck,


----- Original Message -----
From: "Scott" <scottferg1 AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
Sent: Monday, October 09, 2000 1:19 PM
Subject: C Programming Question


>
> 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 '('
>
>
> 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))
>     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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019