CS211 Homework 9 Solved




5/5 - (1 vote)

The aim of this homework assignment is to practice writing recursive functions.

For this homework assignment write two recursive functions:

The first one receives a vector of File pointers and recursively outputs properties of every file stored inside this vector.

The second function receives a vector of File pointers and a string which represents a type of the file (gif or txt). The function should return another vector of File pointers containing only Image files or Text files, depending on the second parameter. The function should be recursive.

Please submit this assignment to your lab instructor.