Declaration issue

I have had a problem with declaring 3 names into one i can’t for the life of me figure out why its only displaying the last name. any help would be so much appreciated i am still looking into it to try and determine why. NOTE: i have not completed the course just wanted to challenge myself with adding a name to the text adventure portion of the course.

THE CODE!

char name_f[8];
char name_m[8];
char name_l[8];

char* name;

//dialogue MB = Main Branch
std::cout << “The flickering light of day dances through the trees as i awaken. For some reason, unbeknownst to me, i feel the urge to DECLARE my name!\n\n”;

//player enters name and stores it
std::cout << “+++++8 Characters Only+++++ :NO SPACES!:\n”;
std::cout << " ENTER FIRST NAME: ";
std::cin >> name_f;
std::cout << " ENTER MIDDLE NAME: ";
std::cin >> name_m;
std::cout << " ENTER LAST NAME: ";
std::cin >> name_l;

// Calculate name
name = (name_f, name_m, name_l);

also this is why i need to do so otherwise the code has too be twice as long.

//dialogue MB = Main Branch
//working code
std::cout << name_f << " " << name_m << " " << name_ << “!!! Yes, that feels right. I can now begin my quest, that i alooOOooone can doOOOOOOooo!\n”;
//experimental Code
/*
std::cout << name << “!!! Yes, that feels right. I can now begin my quest, that i alooOOooone can doOOOOOOooo!\n”;
*/

Honestly you’d be better off just having one std::string name variable.
Not everyone has a first, middle, last name format. Certainly not everyone has less than 8 characters in their name, additionally you wouldn’t call someone by their full name always.

std::string name {};
std::cout << "What would you like to be called?\n";
std::getline(std::cin, name);
std::cout << "Hello " << name << "\n";