Is using strings this way inefficient?
<p>I am a newbee to c++ and am running into problems with my teacher using strings in my code. Though it is clear to me that I have to stop doing that in her class, I am curious as to why it is wrong. In this program the five strings I assigned were going to be reused no less than 4 to 5 times, therefore I put the text into strings. I was told to stop doing it as it is inefficient. Why? In c++ are textual strings supposed to be typed out as opposed to being stored into strings, and if so why? Below is some of the program, please tell me why it is bad.</p>

<pre><code> string Bry = "berries";
 string Veg = "vegetables";
 string Flr = "flowers";
 string  AllStr;
 float Tmp1, Precip;
 int Tmp, FlrW, VegW, BryW, x, Selct;   
 bool Cont = true;
 AllStr = Flr + ", " +  Bry + ", " + "and " + Veg;
</code></pre>
