Hmm, I am having a slight problem with a header file.
In my main project .cpp file I have this function:
string lower(string str)
{
transform(str.begin(), str.end(), str.begin(), ::tolower);
return str;
}
And in my header file I have tried:
extern string lower();
extern string lower(str);
extern string lower(string str);
extern lower(string str);
extern lower(str);
And some others.
It is the header line that doesn't compile; I get a 'syntax error'. I have added functions to headers before, but I am having trouble with functions that have arguments in the '()' Could someone go over this for me? I am using Dev C++.