In the 'C' review notes I make use of the cygwin tools. The following outlines how to install enough of the cygwin tools so that you can perform the examples.
Use your favorite browser to go to one of the cygwin webpages.
C:\cygwin\download\setup.exe
Run the setup.exe file. You can use a file navigator to find and double click on the file. Since the default value for each option is the logical choice for most installations, you can get a working minimal Cygwin environment installed by simply clicking the Next button at each page. I recommend that you use C:\cygwin\download to store your local package dierectory and in choosing a mirror to download Cygwin from, the list of mirrors at http://cygwin.com/mirrors.html provides more details. I recommend that you pick a site in a nearby state.
When you arrive at the Select Packages page, have the following
In the development category (Devel)
Between the DOS style text editor named edit and notepad program that come with Windows, I prefer edit. The edit program has convenient pull down menus and allows you to split the display to work on more than one file at a time, which is handy. I have a note below on how to setup Cygwin to be able to run the DOS edit program.
If you want to try another text editor, consider using the Cygwin installer to install nano or joe. There are fancier editors but some Cygwin applications require the X-window server, which just takes more time to download. If you prefer a native port of emacs for Windows, the official GNU FTP site has one. Point an FTP client to ftp://ftp.gnu.org/gnu/emacs/windows/ We can talk if you want to try it.
From here on out its a long wait till the install completes. Click yes to make a new icon and a new entry in the start menu.
Start a command shell either by clicking on the Cygwin icon on your desktop, or in the start menu select the Cygwin Bash shell. If you want to use the DOS editor, enter the following at the keyboard, you should only ever have to do this once.
For Windows XP use:$ ln -s C:/WINDOWS/system32/edit.com /usr/bin/editFor Windows NT use:$ ln -s C:/WINNT/system32/edit.com /usr/bin/edit
Once this link is created, you can start the DOS editor simply by typing the word edit at the bash prompt, as in the following:
$ edit hello.c
The edit program itself doesn't know how to paste from other Windows, but the actual window edit runs in can do that. To paste text from another window, in the upper left window corner click the Cygwin icon and select edit => paste. BUT if you cannot paste or if you cannot use the mouse in the edit window, then with your mouse click the Cygwin icon in the upper left corner of the window and select Properties. In the pop-up window, in the Edit Options pane check that
Click okay and in the Apply window, click Modify shortcut that started this window so that when you restart Cygwin, the changes will take effect. Close edit by selecting File => Exit and close Cygwin by entering exit at the Cygwin prompt.
If you are not familiar with the Unix style command line interface, the following list of commands should help get you started.
Inside edit type in the following, then save and exit from the file. The leading '.' character in the filename will cause ls to normally not show the file in a listing.$ edit .bashrc
PATH=${PATH}:.
export PATH