This is the code I have so far but for some reason, it doesn't output the inputted name uppercase.
#include <iostream>
#include <string>
using namespace std;
void upper_name(string myname);
int main()
{
string myname;
int i;
cout << "Enter your name" << endl;
getline(cin, myname);
myname.length();
cout << "Your name is ";
cout << static_cast<char>(toupper(myname[i]));
cout << "The length of your name including any spaces is " << myname.length() << " characters.\n";