| delorie.com/archives/browse.cgi | search |
| From: | Richard DOT Wynne AT delorie DOT com |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: gcc 2.7.2.1: Won't compile | or || symbols (really!) |
| Date: | Sat, 05 Sep 1998 02:25:24 GMT |
| Message-ID: | <35f0a0b1.6661668@news.demon.co.uk> |
| References: | <35f08a2b DOT 895968 AT news DOT demon DOT co DOT uk> <1998090502125600 DOT WAA02449 AT ladder03 DOT news DOT aol DOT com> |
| NNTP-Posting-Host: | wynne.demon.co.uk |
| Lines: | 21 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
On 5 Sep 1998 02:12:56 GMT, oohoseoo AT aol DOT com (OoHOSEoO) wrote:
>>For example, this won't compile:
>>
>>int main (int argc, char * argv[]) {
>> if((argc == 1) || (argc == 2)) {
>> return 1;
>> } else {
>> return o;
>> }
>>}
>
>I have no idea what kind of problem you are having with ||, but I can bet
>you'll get an error returning 'o' instead of 0
>
>James B. (OoHOSEoO AT aol DOT com)
OK, OK, so it's late and I bashed it in here instead of pasting from
the prog, but that's not the problem!
Richard Wynne
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |