Hi, in the “Dog Years” codecademy assignment I tried to ask a user input for their dog’s name, just to challenge myself. So in the main function, I declared a string variable as such:
However I kept getting an error when I compiled and saved. The computer didn’t recognize the variable. I tried using the char variable type and that worked. I’ll post a link of my assignment below, if anyone can help that would be awesome!