Hey guys, ive written this program for an assignment of mine, its a airline reservation system that allows a user to book seats within two classes, first and second. First class is seats 1-5, second class 6-10. Ive written a program that uses functions and im sure that ive missed something out because im getting this error:
(18) : error C2664: 'FirstClass' : cannot convert parameter 1 from 'bool [5]' to 'int []'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
(20) : error C2664: 'SecondClass' : cannot convert parameter 1 from 'bool [5]' to 'int []'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Well, both functions take arrays of integers and you pass them arrays of booleans. C++ would convert them for you if you only had a single bool and int, but it can't do that with arrays. Just change the type of either of them.