ok .. this is my code ..
-----------------------------------------------------------------
#include <iostream.h>
void table (char[29],int[29],int[29]);
int main ()
{
char Pname[29];
int flightN [29];
int classtype[29];
int smokeYN[29];
int x;
for (int j=0; j<30; j++)
{
cout<<"Please, Enter your first name "<<endl;
cin>>Pname[j]; //passenger name
cout<<"Please, Enter the flight you want : 1,2 , or 3"<<endl;
cin>>flightN[j]; //flight number
cout<<"Do you prefer to regist in first class or economy class ?"<<endl;
cout<<"1 for yes, 2 for no"<<endl;
cin>>classtype[j];
cout<<"That will cost $1200, is this ok to your finance?"<<endl;
cout<<"1 for yes, 2 for no"<<endl;
cin>>x;
if (x==1)
cout<<"Man! you really seem to be so rich"<<endl;
else
cout<<"I thought so, this will cost $800"<<endl;
cout<<"Do you want a smoker's seat\n 1 for yes, 2 for no "<<endl;
cin>>smokeYN[29];
}
table (Pname[],flightN[29],classtype[29]);
cout<<"

Thanks for travelling with SMILE Airlines

"<<endl;
return 0;
}
void table (char name[29],int flightNum[29],int classtype[29] )
{
int ticketPrice[29];
int smoke[29];
int i=0;
cout<<"Flight Number"<<"\t"<<"Seat Number"<<"\t"<<"Name"<<"\t"<<"Class Type"<<"\t"<<"Ticket Price"<<"\t"<<"Smoke"<<endl;
cout<<"-------------------"<<endl;
cout<<flightNum[i]<<"\t"<<i<<"\t"<<name[i]<<"\t"<<classtype[i]<<"\t"<<ticketPrice[i]<<"\t"<<smoke[i]<<endl;
cout<<"------------"<<endl;
} //end of function definition
-------------------------------------------------------------------------
this program doesn't working there is a mistake, i couldn't fix it ..
--------------------Configuration: project - Win32 Debug----
Compiling...
project.cpp
C:\Documents and Settings\dm com\Desktop\mariam\tables\project\project.cpp(44) : error C2059: syntax error : ']'
Error executing cl.exe.
project.exe - 1 error(s), 0 warning(s)
-------------------------------------------------
i am waiting your reply ..