Instructions for Compiling a C program with the gcc Complier
Download simple.c, a simple test program, by right-clicking here and selecting Save Link As. Save this file on your desktop.
...
Note that "./" needs to precede the executable name to indicate that it is in the current folder or directory. If the program runs normally, you'll get the output "This is a native C program" written to the cygwin window.
Instructions for Compiling a C program with Visual Studio
See this page.
Instructions for Compiling a FORTRAN program with the gfortran Complier
Download pi.f90, a simple test program, by right-clicking here and selecting Save Link As. Save this file on your desktop.
...