References in periodicals archive ?
Neither rdc() nor the initial loop check for the end of file. If the end of file is detected during the middle of a line, this program hangs.
11.36 am - iCloud means end of file storage system.
loop read input line into string S if end of file then break if S = "" then simulate() write S on output F1 = first field in S F2 = second field in S if F1 = "n" then N = F2 else if F1 = "alg" then if F2 = "insert" then alg = 1 else if F2 = "heap" then alg = 2 else if F2 = "quick" then alg = 3 else error("bad alg") else if F1 = "input" then simulate()