Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » exit() doesn't work
exit() doesn't work [message #761740] Wed, 07 December 2011 01:06
patrav2273 is currently offline patrav2273Friend
Messages: 1
Registered: December 2011
Junior Member
Hi,

I am new to C++ programming in Eclipse. I wrote a small code to open a text file. And basically tell the program to exit if the file couldn't be opened:

if(input.fail())
{
cout << "The file couldn't be opened. The program is being terminated." << endl;
exit();
}

But the exit() doesn't work. This function works fine in the Microsoft Visual C++ 2008 Express. Can anyone help?
Previous Topic:Getting Started - Link not found
Next Topic:Error While Installing CDT for Indigo
Goto Forum:
  


Current Time: Fri Apr 26 00:15:54 GMT 2024

Powered by FUDForum. Page generated in 0.03882 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top