For this assignment you will create a stand-alone function, sort, that takes an
ID: 3828311 • Letter: F
Question
For this assignment you will create a stand-alone function, sort, that takes an UList<T> parameter and sorts it using the Selection Sort algorithm. This sort function is to be placed in a file named sortSS.h and UList should be in a file named UList.h. Use your UList.h from previous program
UList<T>
#items: vector<T>
+UList(size_t=10)
+insert(const T&): void
+erase(const T&): bool
+find(const T&) const: bool
+size() const: size_t
+empty() const: bool
+friend operator << (ostream&, const UList<U>&): ostream&
+friend sort (UList<U>&): void
Submit sortSS.h and UList.hprior to the due date/time using the following form:
Explanation / Answer
UList<T>
#items: vector<T>
+UList(size_t=10)
+insert(const T&): void
+erase(const T&): bool
+find(const T&) const: bool
+size() const: size_t
+empty() const: bool
+ulist(size_t,0)
+size(const:size_t)
+friend(ulist<<t>>,file)
+friend operator << (ostream&, const UList<U>&): ostream&
+friend sort (UList<U>&): void
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.