title: Simple wildcard search algorithm in C++
body: <p>I have an assignment in which I have to create a search pattern including wildcard character '?'. We haven't covered anything further than loops and properties of string libraries yet, so my teacher doesn't want me to use arrays or anything we haven't covered. </p>
  
  <p>My problem is to create an algorithm for the special character '?'. Do you have any idea how can I integrate it into my program without using more advanced tricks? Everything I tried is either completely wrong or has some mistakes in it.</p>
  
  <p>Program should request an input from the user for the source string and then, ask for another input for search string which can include '?' in it. For example:</p>
  
  <p>Source string: glorious
  Search string: ?r?o</p>
  
  <p>The matched string was found at index: 2
  The matched string is: orio</p>