Mail Archives: djgpp/1998/05/27/21:45:45
From: | crowpsx AT aol DOT com (Crowpsx)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | My new game.
|
Lines: | 7
|
Message-ID: | <1998052800521300.UAA18681@ladder03.news.aol.com>
|
NNTP-Posting-Host: | ladder03.news.aol.com
|
Date: | 28 May 1998 00:52:13 GMT
|
Organization: | AOL http://www.aol.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hey, I just thought I would announce my new game. It is a action-fighting
game. Come to the site for more details.
http://crowpsx.home.ml.org
Thanks,
E. Draven
@zure Software
en a VERY simple one) and attempt to run it,
>>nothing happens.
>>
>>It says that it is compiling and my HD reads/writes for a few seconds, but
>>nothing happens and have to press ctrl-break to get out of it. On doing
>>this it says "there were errors"
>>
>>#include<stdio.h>
>>int main()
>>{
>> printf("Hello World!\n");
>> exit(0);
>>}
>>
>>As you can see I am very new to C and decided to go about learning the
>>*correct* way, as opposed to my learning BASIC.
>>
>>As well as this Rhide cannot locate it's help files although I am pretty
>>sure that the files needed are there.
>>
>>I don't think it is just me being impatient and not waiting for it to
>>compile as I have sat and waited for in excess of 10 minutes!
>>
>Try to compile without rhide :
>gcc hello_world.c -o hello_world.exe
Hmmm, someone told me it's better to use the return(0) than exit(0), so your
code would look like this:
#include <stdio.h>
int main()
{
printf("Hello World!!\n");
return(0);
}
- Raw text -