/* Given two strings, create a function that returns the total * number of unique characters from the combined string. */ int countUnique(std::string str1, std::string str2) { str1 += str2; std::sort (str1.begin(),str1.end()); //str1.resize(std::distance(str1.begin(),std::unique (str1.begin(), str1.end()))); return std::distance(str1.begin(),std::unique (str1.begin(), str1.end())); // return str1.size(); }