C++ can a user use cin to create a new string?
<p>I made a dictionary. My goal is to have the user enter new words and define them.</p>

<p>I think I have the 'define words' part down, and I have the rest down. I wrote an example of kinda what I am looking for below. I don't want someone to do it for me; I just want to know if there is a way to do this and where I could learn more. </p>

<p>Right now, I am using C++ for Dummies and Sam's Teach Yourself For Teachers.</p>

<pre><code>string newword
string word

cout &lt;&lt; "Please enter a word" &gt;&gt; endl;
cin &gt;&gt; word;
if (word == newword)
{
    create string &lt;newword&gt;; // Which would make the following
                             // source code appear without
                             // actually typing anything new
                             // into the source code.
}  
string newword
string word
string word2 // which would make this happen

cout &lt;&lt; "Please enter a word" &gt;&gt; endl;
cin &gt;&gt; word;
if (word == newword)
{
    create string &lt;newword&gt; 
}
</code></pre>
