[RESOLVED] String manipulation
I'm coming from a c# environment and I was wondering something instead of doing things on multiple lines...how to do it in one
example: [C#]
Code:
string foo="LOL";
string bar="zie lime";
foo+=" at " +bar + " all the time";
//output : "LOL at zie lime all the time"
I've tried that with std::string and just gives me a bunch of errors saying essentially that the + doesn't belong there
I was wondering if it's possible to do the same thing but in c++
right now I'm doing
[C++]
Code:
//lets say they are declared
foo+=" at ";
foo+=bar;
foo+= "all the time";
which makes the code really heavy