I need the first and last names to be capitalized, so if the user inputs a lowercase, it'll change it to uppercase when it's displayed. But it's just the ASCII and I'm not sure how to fix it. Thanks!
#include <iostream>
#include <cctype>
using std::cout;
using std::cin;
using std::toupper;
char firstname[15],
lastname[15];
int f = 0,
l = 0;
int main()
{
cout << "Enter your last name: " ;
cin >> lastname;
cout << "Enter your first name: " ;
cin >> firstname;
f = toupper (firstname[0]);
l = toupper (lastname[0]);
cout << "Welcome " << firstname << " " << lastname << '\n';
cout << "Access granted. Please proceed." << '\n';
return 0;
}