Discussion:
Does numVars has to equal string length of vector
(too old to reply)
Alam Abu Rubait
2004-02-05 05:11:21 UTC
Permalink
Does numVars have to be equal to the string lenght of the vector. If it is
not should it be an error or should we allow the function to take as many
of the values of the vectors if the vector is larger than numVars or if it
is smaller give an error saying invalid value wen it sees a NULL character
at the end of the string.

Abu
Alexander Smith
2004-02-05 22:55:23 UTC
Permalink
numVars should equal the length of the string. If it does not, you should
treat this as an error. Also, while you're writing this function, don't
forget that the character in position 0 in the string corresponds to
variable number 1; we always just ignore variable 0.

Alexander
Post by Alam Abu Rubait
Does numVars have to be equal to the string lenght of the vector. If it is
not should it be an error or should we allow the function to take as many
of the values of the vectors if the vector is larger than numVars or if it
is smaller give an error saying invalid value wen it sees a NULL character
at the end of the string.
Abu
Loading...