Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <string>
- #include <vector>
- using namespace std;
- int main()
- {
- //1//int* pInt = new int;
- /*//2//string* s = new string;
- *s = "Hello";
- cout << *s << ' ' << s->size() << endl;
- string& ref_to_s = *s;
- ref_to_s += ", world";
- cout << *s << endl;*/
- int* pInt = new int(42);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement