From: Ramy Elmeligy Newsgroups: comp.os.msdos.djgpp Subject: RE: BREAK statement aint workin Date: Wed, 22 Aug 2001 14:35:17 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3B8CDC09@MailAndNews.com> X-InterChange-Posted-By: Ramiman12 AT MailAndNews DOT com Sender: Ramy Elmeligy X-EXP32-SerialNo: 50000000 Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: InterChange (Hydra) News v3.61.08 X-Complaints-To: newsabuse AT supernews DOT com Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >===== Original Message From djgpp AT delorie DOT com ===== >Eli Zaretskii wrote: >>>Date: Tue, 21 Aug 2001 18:08:33 -0400 >>>From: Ramy Elmeligy >>> >>>Here's a code snippet, taken from Ivor Horton's Beginning C++. It involves >>>BREAKing a loop, after a certain number of invalid values are input. >>>After i have compiled, when i try to run the program, i get a message saying >>>BREAK is off and then it goes back to the DOS prompt. Whats the problem?? >>> >I believe that DOS has a command called BREAK, so if you compiled your >program to have the name BREAK.EXE, then the dos command gets invoked >instead. to remedy this either rename your program, or run it using the >command line ".\break.exe" (sans quotes). choi. > >-- OHHHHHHH! that makes a lot of sense. heh ------------------------------------------------------------ Get your FREE web-based e-mail and newsgroup access at: http://MailAndNews.com Create a new mailbox, or access your existing IMAP4 or POP3 mailbox from anywhere with just a web browser. ------------------------------------------------------------