delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/01/11:17:10

From: "Tom Beauchamp" <tomtomb AT geocities DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Argument problem
Date: Thu, 1 Jul 1999 10:42:27 -0400
Organization: IDT (Best News In The World)
Lines: 18
Message-ID: <7lfub9$b64@nnrp1.farm.idt.net>
NNTP-Posting-Host: ppp-56.ts-1.hp.idt.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

int main(int argc, char *args[]) {
    if (args[1] == "hello") cout<<"Hello";
    return 0;
}

Produces no output when called with "program hello". Why not? Is it because
I didn't compare it to "hello\o"?  Please Help

Tom Beauchamp

--


Visit the Tomb!
http://www.geocities.com/Area51/Shadowlands/3419/



- Raw text -


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