Hi Martyr2,
Thanks for your rplied, I see what you mean, yes that way I don't have to declare row and seat number seperately. Can I declare the function like this: int assignSeat(int seat_num, int row_num, int pass_num);??? Will (1,'A', 1,'B' ....etc) print 1A, 1B ....?? Do I need to worry about array element 0??? Sorry for asking dum question.
Best Regards,
Sopear
QUOTE(Martyr2 @ 11 Apr, 2008 - 09:42 PM)

Well if you think about it, these seats are going to map to a mutli-dimensional array so why not pass in a row number and a seat letter. That way you can just translate which letter is which number for your array.
For instance, you would call your function like
assignSeat(1,'B') which would then translate 'B' into array subscript 1 (because your arrays start at 0). So this would assign the seat with subscript [0][1] in your array.
Might be one implementation you can go with.
