I have the main part of this program done all i need to do is add a while loop that repeats input and output and then when the user inputs Q the program ends
here is my code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
string fullName;
cout << "Enter your full name (first middle last): ";
getline(cin, fullName);
int space = fullName.find(" ");
int fullLength = fullName.length();
string firstName = fullName.substr(0, space);
int firstLength = firstName.length();
string second = fullName.substr(space + 1, fullLength - firstLength);
int secondLength = second.length();
int secondSpace = second.find(" ");
string middleName = second.substr(0, secondSpace);
int middleLength = middleName.length();