im writing a program for school that needs to search through a directory and find files of a certain type. if it meets up with a folder i need to search inside it and so on for all other folders found inside.
i was thinking of a function to pass the path into but if it meets up with a folder inside i cannot call a function that im already inside.
im not allowed to use boost::filesystem::recursive_directory_iterator
and anything from boost filesystem has to be from version 3
i dont need actual code examples just need a hint to wrap my head around the idea