Can I overload existing function/operator in existing class?
I was trying to do:
#include #include using namespace std;
Use
std::ostringstream
#include #include using namespace std; int main() { std::ostringstream ss; ss << "Hello" << " " << "world"; std::string s = ss.str(); ss.str(std::string()); cout << s << endl; return 0; }
https://onlinegdb.com/rkanzeniI