Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string *ps1;
- string hey = "Hey";
- ps1 = &hey;
- cout << ps1 << endl;
- cout << *ps1 << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement