CMPT 127 Lecture Notes - Lecture 29: C String Handling, Null Pointer, Makefile

101 views9 pages

Document Summary

Write a simple game using callback functions and switch statements to handle events. After this lab you will be able to: use switch/case statements in c, use callback functions implemented with c function pointers, use a simple event-handling framework to construct an interactive program. In the terminal: add the new directory "9" to the root directory of your repository. This will be the working directory for all the instructions below: fetch the new material for lab 9, stored in a compressed tarball: $ wget http://www. cs. sfu. ca/~vaughan/lab9. tgz: expand the archive into the working directory: All the programs we have written so far have run, perhaps processed some input data, and then stopped. If data were needed from standard input the program was blocked from running, waiting for the user to type a line and press "return". Now consider an interactive program like a realtime video game.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents