there are three ways to do what you're tring to accomplish
1. pointer to a pointer (most painful)
Code:
char *input = NULL;
getTheLine(&input);
void CdistanceFilter::getTheLine(char **output)
{
// snip
*output = new char[inputString.length()]; /*get the length of the string*/
}
2. reference to a pointer (better, but still ugly)
Code:
char *input = NULL;
getTheLine(input);
void CdistanceFilter::getTheLine(char *&output)
{
// snip
output = new char[inputString.length()]; /*get the length of the string*/
}
3. forget the the whole pointer thing and use a reference to a std::string (yay!!)
Code:
std::string input;
getTheLine(input);
void CdistanceFilter::getTheLine(std::string& output)
{
// snip
output = "whatever the hell you want";
}