delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/25/22:12:16

From: "Maan M. Hamze" <mmhamze AT mail DOT utexas DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: using rhide
Date: 26 Jan 1997 00:35:07 GMT
Organization: University of Texas at Austin
Lines: 39
Message-ID: <01bc0b1f$c48e8ee0$94b15380@maan-m.-hamze>
References: <01bbf2bd$ec4f95c0$590520ce AT d-moran>
NNTP-Posting-Host: slip-109-4.ots.utexas.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Dennis Moran <coolio AT coolio9 DOT com> wrote in article
<01bbf2bd$ec4f95c0$590520ce AT d-moran>...
> I'm _just_ starting to learn C, adn have no idea what may be wrong. I'm
> just trying to get this code to work, but it says Program Exit Code: 0
> (0x0000) every time I try to run it.
> 
> main()
> 	{
> 	printf("Hello World/n");
> 	exit(0);
> 	}
> 
> 
> I think I'm missing something here.

You are not missing anything.  This is the regular code which means that
the program had run fine.
I think you got that through using Run...Run menu item.  What happened is
that RHIDE runs the programs, then it flashes
the output screen without freezing it for the user to see the output (there
is no:  Press a key to go back to RHIDE from the output screen).
To see the output, do the Run...Run thing, then press ALt-F5
(Window...UserScreen menu item).  Also, you can watch your program running
step by step through switching simultaneously between Run...StepOver (F8)
and Window...UserScreen (ALT-F5).
Also, since we are at it:
main() ???!!!???  This is a no, no, no.....:)
use:

int main(void) 
	{etc.....}

with C.

Maan
-- 
Maan M. Hamze
mmhamze AT mail DOT utexas DOT edu
http://leb.net/~mmhamze

- Raw text -


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