PREV INDEX NEXT

Author: Unknown
Subject: Use of Arrays
Date: Sunday, 22 Mar 2020, 09:35:43

The spec says, "Qsort may not use any arrays other than argv[] and the strings returned by getline()." Just to clarify, may we use array notation then to deal with the strings returned by getline at any point in our code? Even after we have stored all the lines in deques and are at the point of implenting the sorting algorithm itself? I am unsure how to compare two strings without using array notation to loop through individual characters in strings, comparing them one by one, unless you prefer we use pointer arithmetic.
PREV INDEX NEXT