Discussion Outline
Session 4
General questions
Current material
- Tracing functions
- Review function
- prototypes
- definitions
- function calls
- Random numbers - #include <stdlib.h>
- Seeding the generator using srand()
only has to be done once in a program.
It needs to be done before the first
call to rand();
- Using time to seed the generator - need to #include <time.h>
- Top-down Design
- Separate Compilation
Project 1