|
From: Jonathan D. <gri...@ho...> - 2005-07-11 19:10:53
|
Hi Yakir,
Per was saying that you can use any text editor such as Notepad to write the
code for your program. This might be easier for you since Dev-C++ has a lot
going on in it's interface. I wanted to try to help you with what you
posted, though.
Just as Per said, you have some code left in your source file that Dev-C++
put in there automatically for some reason. If you're following the book
that you have, you wont want to start like this. Instead, when you make a
new project, delete everything in it that Dev-C++ automatically puts in.
Then start writing your code. Here's my version of what you should be
trying to do with your source:
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
cout << "Hello World!\n";
system("PAUSE");
return 0;
}
//end of program
If you make a project with a source file (.cpp) that has only this written
in it, then compile and run it, this will create a .exe file that displays:
Hello World!
Press any key to continue...
Keep emailing if you have any more questions, Yakir. If you can get this to
work with Dev-C++, then we can know better how to help you.
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
|