delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/05/23:45:41

From: Jason <bigjmack AT NOSPAM DOT rt66 DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why doesn't C++ work!?!?!
Date: Sat, 05 Sep 1998 21:04:13 -0600
Organization: Rt66.COM, New Mexico's #1 ISP
Lines: 53
Distribution: world
Message-ID: <35F1FBAD.1CC87DC4@NOSPAM.rt66.com>
References: <000301bdd8ea$ad71b8a0$5d4d08c3 AT arthur>
NNTP-Posting-Host: pmd17.rt66.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> According to the C++ standards, all functions must be prototyped.

This is not meant to be a "counter attack" of any sort, but my understanding is
that there really is no "C++ standard" (ANSI C++).  Things may have changed
since I received this info, so if anyone knows otherwise, please let me know.
:O)

> If you don't use int main() then it will cause a warning to show, if not a
> fatal error.

Well, I have never received any kind of warning or fatal error with any compiler
I have used.  Hmm...

> It is also considered bad programming practice by many factions, and bad
> programming (period) by a small minority.

Personally, I am not concerned with what others consider to be "bad programming
practice" most of the time, as long as the program compiles without errors.  I
say this simply because usually the "small minority" which will state that
belief are simply stating their opinion, since the program will compile anyway.
:O)

> Not that if you do use int main() then you really should place a return 0;
> statement at the end of your code.

Again, this is probably considered "bad programming practice" not to include the
"return 0;", and I will worry about that factor when I need to turn in my code
for examination.  :O)

> It's not required. If you want to place a carriage return at the end of a
> line in C, you use \n. In C++ you can use endl, but it's not necessary. It
> does have it's uses.

(Same as above)

> All I can say is that you have to read all the readmes and the faq thoroughly.

Should've remembered - I've heard that countless times.

Side note - PLEASE don't waste your time responding to this expressing your
opinions about posting to the ng w/out reading the readme's, etc. thoroughly - I
will not waste my time responding.  ;O)

> Also, if you had used the Zip Picker at www.delorie.com to download your
> files, you would have seen the following information:

WOW!  I must have a terrible memory - you're right!  I downloaded djgpp ages
ago, and couldn't get C++ sources to compile, so I gave up.  Then ages later
(now), I decided to give it another chance and post to the ng.  I appreciate all
the help you guys have supplied.  Thanks. :O)

--JA$ON--

- Raw text -


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