On Thu, Jan 19, 2006 at 09:37:43PM +0000, Brian Wichmann wrote:
I was a co-author of an algorithm written in Pascal (ISO 7185) which read:
PROGRAM stvpas(datafile, output);
{This program counts the votes in a Single Transferable Vote election, using Meek's method, and reports the results}
...
The datafile was reread on every iteration of the algorithm.
Am I correct in stating that that the program cannot be run with gpc without making a change to the program to assign datafile to an external file?
Brian.
No. You may reread a file any times by resetting it before each iteration. It does not matter whether it was assigned explicitely or through a program parameter.
Emil Jerabek