From mboxrd@z Thu Jan 1 00:00:00 1970 From: ameer armaly Subject: processing arguments Date: Fri, 23 Apr 2004 17:44:53 -0400 (EDT) Sender: linux-c-programming-owner@vger.kernel.org Message-ID: Mime-Version: 1.0 Return-path: List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org Hi all. Let's say that I have the following c++ code: #include 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