Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <vector>
- #include <iomanip>
- #include <cmath>
- #include <string>
- #include <stack>
- using namespace std;
- int main() {
- string a = "abc";
- string b = "abcd";
- string *numa = &a;
- string *numb = &b;
- string *temp = new string();
- *temp = a;
- a = *numb;
- b = *temp;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement