James Fowler's setup program for djgpp (with gdb and make) is here. A version of this setup which also includes flex and bison is here.
James Fowler has also written a tutorial on installing and using djgpp. It can be found here.
The Graduate Teaching Assistants are:
Dharini Ganesh
office hours: Tuesday and Thursday 3:00 pm - 4:00 pm.
Wentao Chang
office hours: Thursday 3:00 pm - 5:00 pm
The Undergraduate Teaching Assistant is Nick Kitten
office hours: Tuesday, 4:00 pm - 6:00 pm., Engineering 4456
email: nkitten_AT_gmail.com
A review sheet for the final exam is here.
The midterm exam will be October 9.
The final exam will be November 13.
Program 1 is here.
Note on change in Program 1 description: Since Program 1 was first
posted two changes have been made:
Program 2 is here.
gcc is available on (virtually) all Unix systems. This includes Linux, Cygwin (on Windows), and Mac OS X.
If you are working on a Windows machine you should get a DOS port of gcc. This, of course, involves using DOS. To do this select Run... from the taskbar and then type cmd. A DOS window will open for you. Working from a command line on DOS is much like using a Unix shell. Google "DOS commands" for information on using DOS. You will need an editor (or an IDE -- see below). Do not use Notepad or a word processor.
James Fowler's setup program for djgpp (with gdb and make) is here. A version of this setup which also includes flex and bison is here.
Emacs is a very powerful and popular editor. It is available on all Unix/Linux systems. Learning Emacs is not particularly easy, but it is worth the effort. When you start Emacs typing ctrl-h t will start a lesson on how to use it. If you get frustrated you can get a session with a psychotherapist by typing alt-x doctor (or esc x doctor). Several tutorials on using Emacs are available on the web (Google "Emacs tutorial"). A Windows port of Emacs can be downloaded from http://ntemacs.sourceforge.net.
jEdit is an editor whose operation is similar to a word processor. It is available from http://www.jedit.org. It runs on all relevant systems. jEdit is easy to learn and complete documentation is available on the jEdit website.
An integrated development environment (IDE) is a program which provides (or provides access to) a compiler, editor, debugger, and from which you can also run your program. Using an IDE gives you the convenience of being able to do all your programming work from one program rather than having to run several different programs from the command line.
NetBeans can be used to write C programs. From the Tools menu select Templates and then select C source file unter the C tab.
If you have been using the IDE jGrasp for your Java programming you may configure it to use djgpp (or one of several other C compilers). To do this:
If you do not have jGrasp you can download it from http://www.jgrasp.org. jGrasp runs on all relevant systems.
Another option for Windows users is Dev-C++. This is an IDE which comes along with (another) port of gcc. It can be downloaded from http://sourceforge.net/projects/dev-cpp.
Note to Dev-C++ users: When you run your program from the IDE a window is opened in which the program runs and then the window closes immediately. This may make it appear that your program did not run completely (or maybe at all). To get around this put this (temporary) line at the end of main:
system("PAUSE");The window will now stay open until you hit any key.