I'm doing a program in c++ but I've some difficulties since I'm new to it.
In my main() code I'm using a function find() that must use another function helper(),like:
and helper must return more than one value,so I've defined a helper.h:
and the helper.cpp that includes helper.h.Also the main includes helper.h.
Now when I'm compiling i get the error from main that tells me of an undefined reference to helper(object)
Can you please help me?
Thanks in advance
It is difficult to know what the problem is because you have left out so much of the code. I suppose that
should have the type of the object specified.
Characteristics helper(SomeType object);
That may fix the problem.
Also the struct should end with a semicolon as shown below
}; // Don't forget the semicolon.
If you cannot fix the problem, send your files as attachments to zlatko.c.help at gmail.com and I will look at it before the end of my day.