instead of starting notepad, you start emacs:
you quit emacs and compile from the command line:
and start it:
./a.out (compiled programs are called a.out in gcc by default)
or, even better if you have the lisp-scripts for C-Mode installed:
(which will split your window and start the compiler inside emacs )
with these scripts you can also start the program inside emacs and even debug it
so emacs is one replacement for the IDE (MS Visual C).
emacs runs in X even better for this purpose.
and kde comes with a IDE too. i just canīt remember its name.
if you have further questions, start a new thread please. this is not at all related to the subject anymore for a long time already...