I need to assign the same value to an int & string but don't want to have the user answer the same question ( see below). When the user enters the "sequence starting number" i would like that value assigned to swill(string) and seqlocw(int).

Any ideas?

Thanks for the Help!



int seqlocw = 0;
string swill;
string pqr;
string sfx;

string sortline;
int errors = 0;
//
//***********************************************
//* Load SEQ Table *
//***********************************************

cout << "Enter Waste-file name without the extension - .clnt is assumed\n";
cin >> pqr;
def = "/jet/user/bmetros/";
def += pqr;
def += "-srt";
def += ".txt";
cout << "Enter Waste-file sequence number starting position\n";
cin >> swill;
cout << "Enter Waste-file sequence number starting position\n";
cin >> seqlocw;
cout << "swill = " << swill << endl;