PREV INDEX NEXT

Author: Unknown
Subject: Restrictions on Strings
Date: Monday, 16 Mar 2020, 19:12:38

The assignment says that Qsort may only use the strings returned by getline(). Are we not allowed to initialize any other strings? For example, to use remD, we have to pass in a string (which will be set to the value removed), and this would have to be initialized beforehand. How does this scenario relate to the rule?

Another example: In our partition function, let's say we initialize a string and set it equal to our pivot, which we will then use to compare with the other elements. Are we not allowed to save the value of the pivot?
PREV INDEX NEXT