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#]
I've tried that with std::string and just gives me a bunch of errors saying essentially that the + doesn't belong thereCode:string foo="LOL"; string bar="zie lime"; foo+=" at " +bar + " all the time"; //output : "LOL at zie lime all the time"
I was wondering if it's possible to do the same thing but in c++
right now I'm doing
[C++]
which makes the code really heavyCode://lets say they are declared foo+=" at "; foo+=bar; foo+= "all the time";




Reply With Quote
