teaching machines

CS 330 Midterm

See the PDF.

CS 330 Final

See the PDF.

CS 330 Midterm

See the PDF.

CS 330 Homework 3 – due before April 4

See the PDF.

CS 330 Lecture 20 – C++

Agenda what ?s Bjarne’s philosophy C with Classes C++ inheritance a Function hierarchy one language? Think About This C with Classes Polymorphism without Conditions http://www.antiifcampaign.com http://www.refactoring.com/catalog/replaceConditionalWithPolymorphism.html Code Function.h SineFunction.h SineFunction.cpp graph_drawer.cpp Haiku

CS 330 Lecture 19 – Abstracting a GUI

Agenda what ?s finishing GUI abstraction pitfalls of C C with Classes TODO Compose a thoughtful and conceptual question that could appear on the midterm on Piazza. 1/4 sheet point, but just post. Code gui.xml gui_madness.c EmailClient.java Haiku

CS 330 Lecture 18 – XML Pull Parsing and GUI Abstraction

Agenda what ?s think about this languages for data (https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=) a GUI description language using XML XML pull parsing TODO Read http://msdn.microsoft.com/en-us/magazine/cc500572.aspx. Read http://stackoverflow.com/questions/3536893/what-are-the-pros-and-cons-of-xml-and-json. Bonus 1/4 sheet. Think About This Code gui.xml gui_madness.c Haiku

CS 330 Lecture 17 – Higher-order Functions in C

Agenda what ?s program this polymorphic sorting in C callbacks with OpenGL/GLUT callbacks with an XML push parser TODO Read chapter 8 through section 8.3. 1/4 sheet. Code olympics.c torus.c Haiku  

CS 330 Lecture 16 – Polymorphism in C

Agenda what ?s finishing stack unions metaprogramming Think About This Code stack1.c stack1.h postfix.c stack3.c stack3.h makefile Note to copy and pasters: makefile rules need to be indented with real tabs, not spaces. Haiku

CS 330 Lecture 15 – Polymorphism in C

Agenda what ?s ezmalloc a postfix calculator void * program this unions metaprogramming TODO  Read chapter 7 through section 7.3 in the book. 1/4 sheet. EZMALLOC What do these malloc calls look like? Allocating space for 100 ints? Allocating space for 10 char *s? Allocating space for 1 struct foo_t? Postfix Program This Code ezmalloc.h […]

1 21 22 23 24 25 35