|
From: feng yu <yu...@ya...> - 2004-07-19 07:09:32
|
Hi,
I began using Dev C++ compiler a few days ago. Below is a problem I met.
I write a very simple program as the following:
#include <iostream>
using namespace std;
int main()
{
int numberOfLanguages;
cout<<"Hello reader.\n"
<<"Welcome to C++.\n";
cout<<"How many programing languages have you used?";
cin>>numberOfLanguages;
if (numberOfLanguages<1)
cout<<"Read the preface. You may prefer\n"
<<"a more elementary book by the same author.\n";
else
cout<<"Enjoy the book.\n";
return 0;
}
There is no problem in compilation but when I execute the program, and input a number for "numberOfLanguages", the pop-up screen disappears. I mean all the interactive information I got when executing the program disappears unexpectedly. But there is no such problem when I use Microsoft Visual C++ 6.0.
I appreciate your patient help.
A programming beginner
---------------------------------
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign! |