[Dev-C++] A very singular problem in Cpp
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Devashish S. <dev...@re...> - 2007-04-01 17:19:16
|
(pwm and Aamynuttal, please ignore this message)Hi!I\'ve a very unique problem about execution of Cpp. I entered the code and the source was compiled without any errors. The windows application was created, but didn\'t open (or it opened for a split second and closed). I tried system(\"pause\"); the result was that an application opened, saying \"press any key to continue\", but the expected output was not there. The simple code was:#include <iostream>using namespace std;int main(){ cout<<\"Hello World!\\n\";}system(\"pause\") didn\'t print \"Hello World\". Then I tried:modifying cout<<\"Hello World!\\n\";but that, too didn\'t work.When I triedcin.get();the application started running in the desired way.Then, I had deleted that application and source file.When I again wrote the same program with cin.get(); it didn\'t work! (didn\'t open!) I\'m wondering what creates such a problem.Please Help! |