Using notepad is the coolio hardcore method, but using an IDE (like Textpad) is a lot easier and more efficient. You can edit code and then compile/run it directly from the editor.

http://www.textpad.com (try it out)

There are also a lot of other good editors on Linux...like Emacs (CL already mentioned that though) but they can be pretty hardcore.