(10 marks) Write a functiom in C++ which when passed 2 different lower case
strings s1 and s2 will return true if the strings are anagrams. Note that 2 strings
are anagrams if they contain exactly the same letters with the same frequency.
im doing a past paper for an exam and have come stuck on the very first question :(
bool areAnagrams ( string s1 , string s2 );
{
if (s1.size() != s2.size())
return false;
else
{
//compare each letter of a string but am unsure how to do that?
}
}