We need to initialize oldtemps so that oldtemps[0] is the temperature of the left heat source, oldtemps[19] is the temperature of the right heat source, and every other entry of oldtemps is the initial temperature of the rod. This last step will, of course, require a for loop.

Return to lesson.

Eric N. Eide
Hamlet Project
Department of Computer Science
University of Utah