It's really simple to say to a pointer to point to a sigle character or a single number.
But I want for example a pointer to change a whole text line. My idea is that the user enters which language he speaks.Code:int *ptr; int a = 5; cout << *ptr << endl;
But I don't know how to this. I could have done this without pointers with if statments but I want to do it with pointers because it were a exercise to do. Please some hints?Code:cout << "English" << endl; cout << "Swedish" << endl;