I am having troubles making an input of a string and bringing it into a string array then outputting it to the screen. here's the code, to get to the problem hit 1, enter, 1, enter, 2, enter, type your first name, enter, type your last name, enter and then it shows hex instead of an actual name.

#include <iostream>
#include <string>
#include <fstream>
#include <cmath>

using namespace std;
int reserveseat(int seat);
int unreserveseat(string first_name, string last_name, int seatnum, string seat[]);

int main()
const int seatnum = 7;
string seat[seatnum];
string name[seatnum];
string lname[seatnum];
int i;
int choice;
int seatres=1;
int want;
char first_name;
char last_name;


cout << "Welcome to Airplane Fantasia"<<endl;
cout << "Would you like to: "<<endl;
cout << "1. Reserve a seat"<<endl;
cout << "2. Unreserve a seat"<<endl;
cout << "3. Exit the program"<<endl;
cout << "choose one, type the cooresponding number and press enter."<<endl;
cin >>choice;


if(choice = 1)

while(seatres == 1)
cout << "what seat number would you like? enter a number 1-6 and press enter"<<endl;
cin >> want;
if (seat[want]=="unreserved")
seatres = reserveseat(want);
seat[want] = 1;
cout << "what is your name? type first name press enter then last name and press enter"<<endl;
cin >>name[want];
cin >>lname[want];

cout << name<<" "<<lname;
else if(seat[want]=="reserved")

cout << "That seat is already taken, please choose another"<<endl;
cout<<seat[i]<<" ";


system ("pause");
return 0;
int reserveseat(int seat)
int contin;
cout << "you choose to reserve seat number "<<seat<<endl;
cout << "would you like to reserve another seat? type 1 for yes and 2 for no and press enter"<<endl;
cin >> contin;
return (contin);