I am very new to C++ so this may be an easy question.
I have a folder and i want to filter out everything with and extension of *.dat OR *.pdf so I want to define a variable that will only accept them extensions. In the past the program used *.* so it grabbed everything in this directory. Can I define a variable to only accept *.dat files and *.pdf files? Or do i have to make separate variables?
My code used to look like this:
#define FILTER "*.*"
Do i have to make two variables like the following or is there a way to make my FILTER variable accept both *.pdf and *.dat files:
#define FILTER1 "*.pdf"
#define FILTER2 "*.dat"
Thanks for any help and being patient with a rookie!