Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie: how to use Dev-c++

Status
Not open for further replies.

thelearner

Programmer
Jan 10, 2004
153
US
Hi,

I just installed Dev-c++ and Tried to create my first hello
world program. After I finished coding, I click ctrl + F9
to compile (with no error). Then I press ctrl + F10 to run,
there was a quick flash came out (couldn't tell what it
was). I thought I was going to get "hello world" somewhere,
what did I miss?

Here is my code.

#include <stdio.h>

main()
{
printf("hello world\n");
}


Thanks
 
thanks for the response.
Another question, for each program that I created, after
compiling I got 4 files (hello.dev, hello.c, hello.o,
hello.exc). Do I suppose to have all these?

 
>Do I suppose to have all these?
Sure:
hello.dev - the project file you created (how to build the exe)
hello.c - the source file you created
hello.o - the object file created from the source file (output by the compiler)
hello.exe - the executable file created from the object file(s) (the output of the linker)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top