this coverts all valid emails in all caps to check if its a dupe but I don't want it to output the valid emails in all caps, but instead it should be output the way it came in. how can I make that happen? without adding more parameters to the functions
//change case
string changeCase(string s)
{
//data
int i;
for (i = 0; i < s.length(); i++)
{
s[i] = toupper(s[i]);
}
return s;
}
don't change the data, just compare a copy of the data caseless
for example..
bool compare_ascii(char a, char b) //notice these are not reference parameters!
{
return (toupper(a) == toupper(b));
}
call something like that instead of == on line 232