cin >> num;
num=n;
assigns a user-specified integer to num
then replaces it with the value of the uninitialised variable n
Did you mean to reverse the assignment
n=num;
instead?
also if you could help me understand what kind of loop I would use to ask a "would you like to try again y/n"
You could use a do...while
loop with the condition for the while
being calculated after you report whether the number was a palindrome.