title: Word Search Puzzle: How do I search an array of letters to find a word?
body: <p>I am trying to create a word-search puzzle game that asks the user to enter a word they think is in the array, and if that word is found, then give the user a point (for a total of 10 points, after which a congratulatory message is printed).</p>
  
  <p>In this code I have a regular array but based on some research I think a 2D array might be better. What are your thoughts? Specifically I am interested in what kind of search algorithm I should consider</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main() {
  // your code goes here
  
    cout&lt;&lt;"=================================================================================="&lt;&lt;endl; 
  cout&lt;&lt;"||                                                                              ||"&lt;&lt;endl;
  cout&lt;&lt;"||                        Welcome to the ECE 114 Game Design!                   ||"&lt;&lt;endl;
  cout&lt;&lt;"||                                                                              ||"&lt;&lt;endl;
  cout&lt;&lt;"=================================================================================="&lt;&lt;endl;   
  cout&lt;&lt;"This is a sample output"&lt;&lt;endl; 
  
  
  //We want to ask the user to enter a word that they think the cross-word puzzle contains
  //if the puzzle contains that word, we tell the user they are correct and update their points
  //score by 1. Total of 10 points to gain, when the points score reaches 10 the user gets congratulatory message
  
  string myArray[] = { "A B C D E F G H
                        S P A D E T R Y
                        T I G O A L E A
                        T R A I N E A W
                        O A P B E A T N  "};
  //The first array above will just be a visual for the player to see
  
  //This second array is the one that I will use to search for words
  
   char wordBank[5][8] = [[ 'A', 'B ','C', 'D', 'E', 'F', 'G', 'H'],  
                      ['S','P', 'A', 'D', 'E', 'T', 'R', 'Y'], 
                      ['T', 'I', 'G', 'O', 'A', 'L', 'L', 'E', 'A'], 
                      ['T', 'R','A', 'I', 'N', 'E', 'A', 'W'], 
                      ['O', 'A', 'P', 'B', 'E', 'A', 'T', 'N']];
  
  cout&lt;&lt;myArray&lt;&lt;endl;
  
  
  
  
  
  return 0;
  }
  </code></pre>