raidan
Member
Did you guys get the pseudocode out for that question wherer ppl book more than 1 seat in a row ? I managed to get something out but i donno how right it is:
WHILE booked_seats > 1
REPEAT
WHILE array(row,seat) = true
print array(row,seat)
seat = seat + 1
booked_seats = booked_seats - 1
ENDWHILE
UNTIL booked_seats = 0
ENDWHILE
i think thats along the lines of what i wrote.... looks pretty wrong to me, what did u guys get ?
WHILE booked_seats > 1
REPEAT
WHILE array(row,seat) = true
print array(row,seat)
seat = seat + 1
booked_seats = booked_seats - 1
ENDWHILE
UNTIL booked_seats = 0
ENDWHILE
i think thats along the lines of what i wrote.... looks pretty wrong to me, what did u guys get ?