Message-ID: <377805DE.7B9B5256@unb.ca> From: Endlisnis Organization: Nortel Networks X-Mailer: Mozilla 4.51 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Command line help References: <19990628180854 DOT 22728 DOT 00000973 AT ng-ch1 DOT aol DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 30 Date: Mon, 28 Jun 1999 23:31:07 GMT NNTP-Posting-Host: 209.226.124.235 X-Trace: news20.bellglobal.com 930612667 209.226.124.235 (Mon, 28 Jun 1999 19:31:07 EDT) NNTP-Posting-Date: Mon, 28 Jun 1999 19:31:07 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com FixAllPCs wrote: > Why doesn't this work? > > #include > > int main(int argc, char argv[]) int main(int argc, char* argv[]) > > { > int loop; > for(loop = 0; loop < argc; loop++) > { > cout<<"argv["< } > return 0; > } The 2nd argument is a char*[], not a char[]. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT HotMail DOT com ICQ: 32959047