| delorie.com/archives/browse.cgi | search |
| From: | Nate Eldredge <neldredge AT hmc DOT edu> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Help! |
| Date: | 20 Oct 2000 14:54:25 -0700 |
| Organization: | InterWorld Communications |
| Lines: | 23 |
| Sender: | nate AT mercury DOT st DOT hmc DOT edu |
| Message-ID: | <834s27rxf2.fsf@mercury.st.hmc.edu> |
| References: | <002001c03ac9$ebe70fc0$0500a8c0 AT brk> <39f0b88a DOT 48929103 AT news DOT freeserve DOT net> |
| NNTP-Posting-Host: | mercury.st.hmc.edu |
| Mime-Version: | 1.0 |
| X-Trace: | nntp1.interworld.net 972078866 20789 134.173.57.219 (20 Oct 2000 21:54:26 GMT) |
| X-Complaints-To: | usenet AT news DOT interworld DOT net |
| NNTP-Posting-Date: | Fri, 20 Oct 2000 21:54:26 +0000 (UTC) |
| User-Agent: | Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
dontmailme AT iname DOT com (Steamer) writes:
> Here's a silly program that prints out the name of the language it
> was compiled as - I'll let you work out why:
[snip]
Even more fun is the classic scheme
int is_cplusplus(void)
{
int x;
x = 2-2//**/1;
+1;
return x;
}
Unfortunately, gcc needs -ansi to compile it properly as C.
--
Nate Eldredge
neldredge AT hmc DOT edu
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |