Scanning two dimensional arrays

for the program i will be given a auditorium with empty and filled seats
as in the link provided...

http://clipper.lehigh.edu/engr1/pas/reserv_a.txt

I don't know how to scan the file for repetitive empty seats

"Finds and reports all pairs of adjacent seats that are empty.
The location ( row number and seat number) of the seats must be printed. If three adjacent seats are empty, then both pairs must be reported,
if four adjacent seats are empty then all three pairs must be reported e.t.c.
If no pairs of seats are available, it prints an appropriate message."
Seems like a HW question to me. We cannot give you solution.
To start off, may you should read about file input/output operations and then if you have questions, post.
Topic archived. No new replies allowed.