CS1141: C for Java Programmers
MTWR 11:05 AM - 11:55 AM, Rekhi G009
Summer 2013
Assignments
Note: All homework must be turned in via Canvas. These PDFs are provided
as a convenience, only.
Programs are to be turned in using Submit by the appointed time, or
according to the Slip Days rules.
|
Program
|
Due
|
Solution
|
|
#1 - Tron's Deadly Disk
|
22 May by 11:59PM
|
not posted yet
|
|
#2 - Arrays, Strings, and Structs
|
5 June by 11:59PM
|
not posted yet
|
|
#3 - Makefiles
|
12 June by 11:59PM
|
Not posted yet.
|
|
#4 - Dynamic Memory & File I/O
|
26 June at 11:59PM
|
not posted yet
|
Course Information
Other Resources
GCC
-
Linux Most linux distros either install GCC by default (eg
Ubuntu) or provide it in their package manager (eg Debian).
Installation (if needed) should be straight-forward. Don't forget to
install Make.
-
Mac OS X Mac users will need to install XCode if they want to
use GCC. It's available free from Apple, either via the Mac Developer's
Center for persons on [Snow] Leopard, or from the App Store
on [Mountain] Lion. If you're using the App Store version, make sure to
install the Command Line Tools from the preferences.
-
Windows While it's possible to run GCC on Windows, it's a very
bad idea for this class. If you can't get to the labs somehow, please
consider setting up a virtual machine running Linux and using that.
Text Editors
-
Komodo Edit -
This is the text editor being used in lecture. It's free and reasonably
full-featured, but you're free to use something else if you like.
-
Notepad++ - Another
fantastic text editor. A bit speedier than Komodo Edit, but it's
Windows-only.
General C Stuff
-
Binky at Stanford - Hailed
by many as "the best 3 minute video on pointers---Ever." It may help,
it may not, but it's available. (There is also lots of other stuff from
Stanford's CS program at the same place.)
Makefiles
Quick Reference
Other Resources
-
Writing
CPP Macros - A nicely readable introduction to C/C++ macros.
Includes a good discussion of pitfalls of macros. Pay special attention
to the 'decalog of a prudent macro writer' at the end of the page.
-
The Function Pointer
Tutorials - An introduction to using and understanding function
pointers. Note that things the author refers to as 'C++' deal with
classes. The C syntax will work fine in C++, too.
SQL/SQLite
This page last updated 13 May 2013