Install NetBeans and C compiler under Windows
Download and install
http://services.netbeans.org/bouncer/index.php?product=netbeans-6.5-cpp&os=windows
http://downloads.sourceforge.net/tdm-gcc/tdm-mingw-1.812.0-f1.exe
http://downloads.sourceforge.net/mingw/MSYS-1.0.10.exe
Add to system PATH
C:\MinGW\bin;C:\msys\1.0\bin
http://wiki.sergio-lopes.org/index.php?n=Rabble.NetbeansCinW#mingw