Eclipse is an excellent (and my favorite) IDE for java. I wouldn't say the same about it if it comes to C/C++. Instead check out this:
http://www.codeblocks.org/[
^]. Most of the time I work on windows platform with Visual C++ but when I have to check out a linux bug in crossplatform code I use this stuff edit the source. Its surprisingly good free stuff.
EDIT: another option is running a virtual machine with windows and using Visual C++ in it to edit sources that are on the linux machine in a directory shared with the VM. In this case you have comfortable source editing but you have to compile the code on the linux (host) machine. This solution has the disadvantage of terribly slow and uncomfortable installation and switching between the host/guest wm can be uncomfortable. To circumvent this switching install an ssh client in the windows machine and login to the host. :-) After this you can do all the work inside the windows machine and you can switch with alt+tab between VisualC++ and the ssh client. You can use this trick to get any other windows-only editors on linux. Use
VirtualBox[
^] as a virtual machine. The virtual machine trick can be used quite well with Windows host and linux guest as well when you have a Windows machine and you keep an ubuntu inside the VM. You edit the source on windows and share your source directory with the linux machine. You log in to the linux machine with an ssh client (cygwin or putty) from the windows one and you can do the compilation. This has a disadvantage with VirtualBox compared to the previous solution: the virtual machine sometimes isn't aware that the files have changed in the shared folder from outside of the VM (by editing them on the windows machine with VS).