Run that example. Is this what you're asking?Code:#include <string> #include <iostream> using namespace std; int main() { string s1 = "abc"; string s2 = "123"; cout << s1 << " " << s2 << "\n"; swap(s1, s2); cout << s1 << " " << s2 << "\n"; }
Regards,
Paul McKenzie





Reply With Quote
