Working on some code that compares strings, currently trying to implement a function that will recognize '_' as a wildcard so that for instance, c_t would match cat or cut.
I currently have it string comparing code working but are not sure on how to progress it to include wildcards, do i need to store the string characters in an array and then iterate through them testing one at a time?
Any suggestions, pseudo code appreciated.
1 2 3 4
if (pattern2 == word2) {
matches += 1;
cout << word << endl;
}