delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/08/13:32:49

Message-Id: <m0xIzvm-0003DCC@fwd07.btx.dtag.de>
Date: Wed, 8 Oct 97 19:29 MET DST
To: rdebelj AT wt DOT com DOT au, djgpp AT delorie DOT com
References: <61canb$kjf$1 AT kurica DOT wt DOT com DOT au>
Subject: Re: [Q] Whats wrong here...
MIME-Version: 1.0
From: Georg DOT Kolling AT t-online DOT de (Georg Kolling)

Robert Debeljakovic schrieb:
> Ok, look at the following code....
> ----------------------------------------------------
> #include <stdio.h>
> #include <stdlib.h>
> #include <conio.h>
>
> void Random(int MaxValue)
> {
> int x;
>
> x= -1;
> if((x < 0)||(x > MaxValue))

i think this should be while((x<0)||(x>MaxValue))




- Raw text -


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