Skip to content

Latest commit

 

History

History

stl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Instructions

  • look at the non STL code in randomize.nostl.cpp
    • it creates a vector of ints at regular intervals
    • it randomizes them
    • it computes differences between consecutive ints and the mean and variance of it
  • open randomize.cpp and complete the “translation” to the STL
  • see how easy it is to reuse the code with complex numbers, by calling compute with objects of type Complex