STL Quiz


Name:
  1. Given the code in counter4.h, explain in as much detail as what happens when the call to sort is made on the second to last line of the program.
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
  2. Given the code in adder.cpp, note what each #include line is needed for and predict the output of running the program.
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
  3. Given the declaration of an iterator for the standard vector class in vec_iter.h, fill in a plausible implementation (i..e, assuming vector did not already have an iterator defined). 
  4. Given the modified counter3.h file, explain the reason for the compilation error given at the bottom of the file.

  5.