www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/03/04:20:20

From: Martin Ambuhl <mambuhl AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Incomprehensible messages when attempting to run program
Date: Sat, 03 Oct 1998 03:42:44 -0400
Organization: Nocturnal Aviation
Lines: 22
Message-ID: <3615D574.58293FC1@earthlink.net>
References: <jp3mMAAqKzE2Ew3A AT gingecat DOT demon DOT co DOT uk>
NNTP-Posting-Host: 1cust231.tnt12.nyc3.da.uu.net
Mime-Version: 1.0
X-Posted-Path-Was: not-for-mail
X-ELN-Date: Sat Oct 3 00:40:43 1998
X-Mailer: Mozilla 4.06 [en] (Win95; U)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Graham Watkins wrote:
> 
> Can anybody out there explain this?
> 
> I am currently attempting to learn C using the djgpp compiler. When
> attempting to run the program below which has compiled without errors,
> all I get is the following message:

Actually, you should have gotten diagnostics.  If not, you are not using
a sufficiently high level of warning messages.  However, your immediate
problem is in the 
>                         for (c = 0; b < 10; c++)
If you look at it, I'm sure you will see the problem.
Also, try #including <conio.h>, and fixing
>                                 printf("\%d", random_array[a][b][c]);
It would be a good idea to make the return type of main explicit (it's
int) and explicitly return a value.


-- 
Martin Ambuhl (mambuhl AT earthlink DOT net)
Note: mambuhl AT tiac DOT net will soon be inactive

- Raw text -


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