www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/05/16:15:23

From: halibut AT falcon DOT cc DOT ukans DOT edu
Message-Id: <9606052005.AA28816@falcon.cc.ukans.edu>
Comments: Authenticated sender is <halibut AT falcon DOT cc DOT ukans DOT edu>
To: djgpp AT delorie DOT com, j DOT aldrich6 AT genie DOT com
Date: Wed, 5 Jun 1996 15:06:18 +0000
Mime-Version: 1.0
Subject: Re: Beginners srand error

> >void main, anyone?
> 
> As much as I'd like to, I've already said my piece on the subject.
> I could find the original posts and copy them, if you'd like?  ;)
> 
> Well, maybe just once...
> 
> void main() is BAD PROGRAMMING!  BAD!  Go sit in the corner for 30
> minutes!  :-P  The correct definition for main is:
> 
> int main( void )
> 
> if you don't need command-line arguments, or
> 
> int main( int argc, char *argv[] )
> 
> if you do.  Screw traditional C.


Well, I'd like to see the original posts why void main() is bad
programming. I'm grateful to learn all my errors; there have been 
quite a few in the one week I've been studying C.

I have another question concerning make files.

Either of my Dos text editor, edit or e, will not seemingly store
the tab character that is needed at the beginning of a make file 
command line. I had to resort to using a windows app. Is there
a way to configure either of these editors so I can write make files
with them.

Another question is to everyone: what is the best way to view
and edit all of your program files and still have access to dos
for the command line to make or run (aside from Rhide). What I've been doing
is opening files from windows with notepad and then editing them, but
the limitation of this is I can't save the changes easily. What is 
the best editor or editor of your choice to do this? (Also is there a djgpp
command line option to make and run at the same time?)

Thanks,

Bryan Willett

- Raw text -


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