For an assignment we need to be prompt the user to enter a department in the format of 3 letters then 3 numbers like itk168. We need to set it up to accept either caps or lower on the number part. How can I do it if I read in the department into a string. How do I go about converting the first 3 letters to lower and not mess with the numbers.
string dept;
cout << "Enter Department" << endl;
getline(cin, dept);
?how do I use tolower() here?
-GT
string dept;
cout << "Enter Department" << endl;
getline(cin, dept);
?how do I use tolower() here?
-GT
Comment