www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/10/15:38:43

Message-ID: <00eb01c032f1$dd40ea20$0500a8c0@brk>
From: "Johan Henriksson" <jhe AT realsoftware DOT cjb DOT net>
To: <djgpp AT delorie DOT com>
Subject: Re: C Programming Question
Date: Tue, 10 Oct 2000 21:21:34 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

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 -


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