i need to write a program that takes this style of input
Enter customer name: Kristopher Ann#Nugent
and seperates the name to look like this
Customer name: Nugent, Kristopher Ann
so far i have decided to separate the name into 3 separate character strings but i can only get two of them to store
char first[255], middle[255], last[255];
float quantity, price, total, discount_total, final;
cout << "Enter your name in First Middle#Last format.";
cin >> first;
cin >> middle;
cin.ignore(1, '#');
cin >> last;