Hello. I was trying to use struct as a way to store more information a person in a variable, and then print out the information. However, if I want to request a name (that is letters instead of numbers), how do I store them in a variable? If that is even possible. My code is as following atm:
Moschops is correct. You can't store a letter in an int.
You can use string or an alternative is to use the char type. You don't need to include any additional headers for this. You would need to make an array of characters that can be filled with the cin.