If I understood correctly your requirements, you need an array of strings as well an array of seat numbers (or better an array of structs, with
passenger name and
seat number as members). Your program hasn't those. It looks you lack of a basic understanding on C++ (and C) array and string handling (e.g. you really don't need pointers).
You could write:
#include <iostream>
#include <vector>
using namespace std;
struct Passenger
{
string name;
int seat;
};
int main()
{
vector <Passenger> passenger;
char answer;
do
{
Passenger p;
cout << endl << "enter passenger name ";
cin >> p.name;
cout << endl << "enter passenger seat number ";
cin >> p.seat;
passenger.push_back(p);
cout << endl << "do you wish to continue ? ";
cin >> answer;
} while ( answer == 'y');
int n, seat;
cout << endl << "enter the seat number ";
cin >> seat;
for (n=0; n<passenger.size(); ++n)
{
if ( seat == passenger[n].seat )
break;
}
if ( n != passenger.size() )
cout << endl << "found passenger " << passenger[n].name;
else
cout << endl << "sorry, no match";
cout << endl;
}