title: How to generate all possible 4 letter words in C++
body: <p>I want to write a program that can give me all 4 letter words (from the dictionary or outside the dictionary). I code in C++. And by far, I've reached nowhere.
  I'm simply a beginner in C++, I can apply the logic but I'm not introduced to advanced features in C++. It doesn't matter if it takes a long time for this program to end execution, I just want the solution.</p>
  
  <p>For example:</p>
  
  <pre><code>abcd
  king
  ngik
  cbda
  play
  lpay
  payl
  </code></pre>
  
  <p>and so on (just a few of the millions of outputs I hope this program to output).</p>
  
  <p>NOTE: The words generated need not make sense and I do not want to discard any combinations, I want it all.</p>