| www.delorie.com/archives/browse.cgi | search |
| From: | "John M. Aldrich" <fighteer AT cs DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: sizeof(long double)==12 |
| Date: | Tue, 19 Aug 1997 21:10:59 +0000 |
| Organization: | Two pounds of chaos and a pinch of salt |
| Lines: | 31 |
| Message-ID: | <33FA0BE3.59D7@cs.com> |
| References: | <33F9958D DOT 656992B2 AT usa DOT net> |
| Reply-To: | fighteer AT cs DOT com |
| NNTP-Posting-Host: | ppp207.cs.com |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Einstein wrote:
>
> #include <iostream.h>
>
> void main()
> {
> cout << sizeof(long double) << endl;
> cout << (sizeof(long double)==12) << endl;
> }
>
> Any one have tried this program in djgpp?
E:\>gxx -Wall -O -g -o test.exe test.cc
test.cc:4: warning: return type for `main' changed to integer type
E:\>test
12
1
E:\>
Looks fine to me. What's your problem? Oh, according to the C++
specification, main() must return an integer. But that doesn't cause
any problems with your program.
--
---------------------------------------------------------------------
| John M. Aldrich | "A generation which ignores history |
| aka Fighteer I | has no past--and no future." |
| mailto:fighteer AT cs DOT com | |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |