linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* processing arguments
@ 2004-04-23 21:44 ameer armaly
  2004-04-24  0:40 ` Chuck Winters
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ameer armaly @ 2004-04-23 21:44 UTC (permalink / raw)
  To: linux-c-programming

Hi all.
Let's say that I have the following c++ code:
#include <iostream>
int main(int argc, char *argv[])
{
if(argv[1]=="hello")
cout <<"Hello World!";
return 0;
}


When I try that, and I type:
./a.out hello

It doesn't give me any output.
Can someone explain how to process args properly?
Thanks,


Ameer


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-24  5:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-23 21:44 processing arguments ameer armaly
2004-04-24  0:40 ` Chuck Winters
2004-04-24  0:58 ` A. Murat Eren
2004-04-24  5:06 ` vadiraj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).