Identifier not found

Forgot to scope!
Last edited on
That code you've posted from the cpp file isn't defining methods of the class. It's defining global functions.

You define a method like so:

1
2
3
4
bool MyClass::MyMethod(int a, double b)
{
  // ...
}
Oh lord this was so stupid.
The rest of the code is using scope, but since I copied that from old code I forgot to scope it... jeez thanks mate
No worries - it's an easy mistake to make :)
Solved :)
Last edited on
Best guess, it needs an object of type Line to call it.
operator>> is a global operator, rather than part of the class. Presumably, you want to call ln.requestInput ?
Last edited on
You are absolutely right MikeyBoy, had no idea that could happen, I assumed it would be handled as if it was a part of the class.
Topic archived. No new replies allowed.