Mail Archives: djgpp/2000/05/13/22:12:59

From: "Aleks D." <user AT host DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP and while loop.
Lines: 31
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Message-ID: <fboT4.56105$>
Date: Sun, 14 May 2000 02:28:27 GMT
X-Trace: 958271307 (Sat, 13 May 2000 22:28:27 EDT)
NNTP-Posting-Date: Sat, 13 May 2000 22:28:27 EDT
Organization: Sympatico
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


I am running Windows 98 and DJGPP.  I am a beginner in C and am having
problems running compiled programs that include a while loop.  I can
successfully compile the following code from RHIDE:

#include <stdio.h>

int main()
int count;

       count = 0;

           while(count < 6);
           printf("The value of count is %d\n", count);
           count = count + 1;

return 0;

But when I go and execute the compiled .exe in the /bin directory there is
no correct output displayed.  I only get a cursor on the left side of the
screen.  Any help will be appreciated.

- Raw text -

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