Message-ID: <3B4BE53B.95AD10F4@earthlink.net> From: Martin Ambuhl X-Mailer: Mozilla 4.77 [en] (Win95; U) X-Accept-Language: en,zh-CN,fr,de-CH,ru MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: compiler help References: <20010711030224 DOT 12370 DOT qmail AT web12204 DOT mail DOT yahoo DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 Date: Wed, 11 Jul 2001 05:31:49 GMT NNTP-Posting-Host: 63.210.209.186 X-Complaints-To: abuse AT earthlink DOT net X-Trace: newsread1.prod.itd.earthlink.net 994829509 63.210.209.186 (Tue, 10 Jul 2001 22:31:49 PDT) NNTP-Posting-Date: Tue, 10 Jul 2001 22:31:49 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Tue, 10 Jul 2001 22:29:33 PDT (newsmaster1.prod.itd.earthlink.net) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Matt Mooney wrote: > #include > > int main() > { > short x; > short y; > > cout<<"Please enter two numbers:\n"; > cin>> x >> y >>endl; You should have gotten a diagnostic for the above line. If not, crank up the warnings (see 'info gcc invok'). cin >> endl; has no meaning. Change the line to cin >> x >> y;