delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Cesar Rabak <crabak AT acm DOT org> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: scanf: strange behavior? |
Date: | Thu, 02 Sep 2004 18:01:54 -0300 |
Lines: | 18 |
Message-ID: | <41378A42.5040801@acm.org> |
References: | <20040902144152 DOT GH6858 AT webhome DOT cz> <2pp00iFnf7nsU1 AT uni-berlin DOT de> <41374c9c$0$173$cc7c7865 AT news DOT luth DOT se> <20040902184005 DOT GA23943 AT webhome DOT cz> |
Mime-Version: | 1.0 |
X-Trace: | news.uni-berlin.de 6y1AFl7Rl9Z4mBjYpI+3nQQvA/CHCXMfRFGiHNJYQvXeX7fko= |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.0.2) Gecko/20030208 Netscape/7.02 |
X-Accept-Language: | pt-br, pt |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
egon AT heaven DOT industries DOT cz escreveu: >>>>int main(int, const char**) >>> >>> ^^^^^^^^^^^^^^^^^^^^^^^^^^ >>>After correcting this illegal and uncompilable line, >> > > You are kidding (a c++ hater perhaps?). I think this is legal c++, > and even valid main() prototype. Correct me if I'm wrong please. But: the use of the code above would be to collect arguments passed to the command line _except_ yours have no variable to collect! Since you have put in the body of your main, is no longer a prototype! -- Cesar Rabak
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |