#include #include using namespace std; void change(string* change_first, string* change_last) // in this function we created a pointer { *change_first = "Master"; // this allows us to change the variable because we know its memory address *change_last = "piece"; } int main() { string first = "first"; // declaring some normal variables string last = "last"; cout << first << last << "\n"; change(&first, &last); // we use & to make the pointer reference the variable cout << first << last << "\n"; system("pause"); }