/////////////////////////////////////////////////////////////////////////
// Student Info
// ————
Copyright By PowCoder代写 加微信 powcoder
// Name :
// ————————
// All the code and comments below are my own original work. For any non-
// original work, I have provided citations in the comments with enough detail
// so that someone can see the exact source and extent of the borrowed work.
// In addition, I have not shared this work with anyone else, and I have not
// seen solutions from other students, tutors, websites, books, etc.
/////////////////////////////////////////////////////////////////////////
// These are the only permitted includes: don’t include anything else.
#include “cmpt_error.h”
#include
#include
#include
#include
#include
using namespace std;
class str_vec {
}; // class str_vec
// … put test functions here …
// This is a test function that you can use to help test your str_vec class when
// it’s done. You don’t need to use it, and you can change it in any way you
// void austen_test() {
// str_vec a(“austenPride.txt”);
// a.sort();
// cout << "\n";
// const string correct_first_word = "\"'After";
// if (a.get(0) != correct_first_word) {
// cout << "!!Error!!\n";
// cout << "word return be a.get(0): " << quote(a.get(0))
// << "\n";
// cout << " correct first word: " << quote(correct_first_word)
// << "\n";
// } else {
// cout << "alphabetically first word: " << quote(a.get(0)) << "\n";
// const int correct_word_count = 124580;
// if (a.size() != correct_word_count) {
// cout << "!!Error!!\n";
// cout << "word count returned by a.size(): " << a.size()
// << "\n";
// cout << " correct word count: " << correct_word_count
// << "\n";
// } else {
// cout << "word count: " << a.size() << "\n";
int main() {
cout << "Assignment 2 ... \n";
// ... put code that calls your test functions here ...
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com