Hello I am trying to right align a program so that the input is 20spaces over on the console. So for an example:

Code:
#include<iostream>
#include<iomanip>
#include<string>

using namespace std;

int main()

{

string name, address;

cout << "Enter your name: " ;
cin >> name;
cout << "Enter your address: ";
cin >> address;

cout << "Your name and address is: " << setw(20) << name << endl;
cout << setw(30) << address endl;

}
I want name and address to align up perfectly, but the problem is, unless the user's input of name and address are exactly the right amount of spaces, they won't align up properly.

So how do you make it so no matter how many number of characters their name and address is, they align properly underneath each other?