delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/07/00:07:18

From: Michael Trausch <mtrausch AT wcnet DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: hello program doesn't work
Date: Sat, 6 Feb 1999 23:50:59 -0500
Organization: Wood County Internet Council
Lines: 52
Message-ID: <Pine.SOL.3.95.990206234838.18519C-100000@woody.wcnet.org>
References: <uFJIRUiU#GA DOT 69 AT upnetnews02 DOT moswest DOT msn DOT net>
NNTP-Posting-Host: woody.wcnet.org
Mime-Version: 1.0
In-Reply-To: <uFJIRUiU#GA.69@upnetnews02.moswest.msn.net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Please post your source code so that we can see what it looks like... we
can't tell you what's up without the source.

However, this is what a program for "Hello, World" should look like:

(Using the printf method:)

#include <stdio.h>

int main()
{
	printf("hello, world");
	return(0);
}

(or, using cout):

#include <iostream.h>
 
int main()
{
	cout << "hello, world";
	return(0);
}

On Sat, 6 Feb 1999, Cheerio wrote:

> I just downloaded DJGPP and RHIDE today, but I'm having trouble with the
> "hello world" program.
> 
> There's something about the program exit code being -1, and a black box at
> the bottome says "Unmatched quote character".
> 
> When I switch to the user screen, there's nothing there, so I guess it
> didn't work.
> 
> What am I doing wrong?
> 
> Thanks,
> Cheerio
> 
> 
> 
> 
> 

---
Michael Trausch                                         mtrausch AT wcnet DOT org
Lake High School                            http://www.wcnet.org/~mtrausch

    Old programmers never die.  They just terminate and stay resident.

- Raw text -


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