title: How do i find character (variable) from a string?
body: <pre><code>cin &gt;&gt; letter &gt;&gt; position; //This is inside the main(). 
  
  void moveLetter(char letter, int position) {`
  
      if (upperRowPiecesToPlay.find(letter)) {
  
          upperRowPiecesToPlay.replace(letter,1 , " ");
  
              switch(position) {
  
                  case 1:
                      if(p1 == '.' ) {
                      p1 = letter;
                      }
  
                      break;
  </code></pre>
  
  <p>So, this is my code.</p>
  
  <p>I'd like to find a character(input from a user) from the given string. And replace it with empty space.</p>
  
  <p>However, obviously this is not how I should use the find and replace. </p>
  
  <p>Please teach me the right way...</p>