X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Martin Ambuhl Newsgroups: comp.os.msdos.djgpp Subject: Re: scanf: strange behavior? Date: Thu, 02 Sep 2004 20:44:51 -0400 Lines: 24 Message-ID: <2ppt4dFnoio1U1@uni-berlin.de> 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 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de HuFsVB4L0ri39hQ3PbajxQiUw4+ItiJJAQNS5IJAKFODGOm68K User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en, de, fr, ru, zh, ja In-Reply-To: <20040902184005.GA23943@webhome.cz> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk egon AT heaven DOT industries DOT cz wrote: >>>>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. I'm sorry. I was misled by the C inclusion #include where a C++ program would have #include Are you a hater of C++, perhaps? BTW, there is no mention of C++ in your code. Using the C header rather than the C++ header and code that, apart from the one line I pointed out, looks much more like code a C programmer would write than that a C++ programmer would write. Since your code is neither standard C nor standard C++, is there some reason I should assume your unlabeled C-looking code was intended to be C++?