I just started using DevC++ (ty Ancient Dragon) to learn C/C++. I am starting with the basic Hello World! The online tutorial I am following (which seems pretty good to me, but what do I know...yet) does not express how to check my work.

I remember seeing a C tutorial that had an example of how to keep the DOS? window open to see if the code you are writing is correct. Do I even need to keep it open. Right now, all
I am getting is the flashing window.

I have written the code as follows...

//my first c++ program

#include <iostream>
using namespace std;

int main ()
{
 cout <<"Hello World!";
 return 0;
 }

I then click the "compile and run" button.

Thank you for any direction...

Re: Keeping DOS window open in Devc++ 80 80

O.k. Right now, I am banging my head against the table. There is this cool thing call
Google Search. Way cool.

For others who might not be as new as myself: http://www.fredosaurus.com/notes-cpp/ide/devcpp.html

Re: Keeping DOS window open in Devc++ 80 80

Google should be the first place to ask questions because it can often get you the answers very quickly. And we've had that same question asked here on DaniWeb a billion times -- once just this morning that I know of.

Re: Keeping DOS window open in Devc++ 80 80

Yes, thank you again, sir.

I have been trying to get things together on my own for a few weeks. Getting the compiler running and all. I guess I got lazy and couldn't wait to actually start with the programming.

And I promise to take my time (and stop wasting others') and actually look through posts, threads and do a Google search.

Thank you again, for taking the time to stop and answer a newbies ?

Re: Keeping DOS window open in Devc++ 80 80

>>Yes, thank you again, sir.
Please don't call me sir -- I had to work for a living :)

>>Thank you again, for taking the time to stop and answer a newbies ?
No problem -- that's what we're here for :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.