Hi All,

I have just started learning how to write C++, I have written my very first very simple program using notepad and saved the file as simple.cpp.

So my question is how do I compile or build my program into an executable file, I understand I have to use the dos command line, can anyone tell me what the commands are.

When I open command line in dos it starts with this

C:\Users\V8 Power\>

What do I have to type in nect to build my program, then how do I execute it.

Thanks very much

John

You should just download a free c++ compiler. I use Dev C++ and I am 100% satisfied with it. With Dev you can type up your program , save it as filename.cpp, press the F9 key to compile and run. It's that simple.

You should just download a free c++ compiler. I use Dev C++ and I am 100% satisfied with it. With Dev you can type up your program , save it as filename.cpp, press the F9 key to compile and run. It's that simple.

Will it work with Windows Vista?

Cheers

John

Hi All,

I have just upgraded to Windows 7 from Vista and the version of Dev C++ thats works on vista also works on Windows 7.

Cheers

This question has already been answered. Start a new discussion instead.