I would pls like to know why this program doesn't work, I've been trying to figure this one out for a while now and I just don't know why it doesn't work pls help! (first one doesn't work, second one works).
Because "something" is a constchar* and std::string("something"); is a std::string. strings have an overloaded '+' operator (that does what you expect it to), char*'s don't.