#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str="give me";
string str1="a cup'";
str.swap(str1);
cout<<str<<endl;
cout<<str1<<endl;
return 0;
}
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str="give me";
string str1="a cup'";
str.swap(str1);
cout<<str<<endl;
cout<<str1<<endl;
return 0;
}