Hello, been a while since I've done any coding, went on holidays for 4months and deferred.
Anyway I have this error and can not figure out what I'm doing wrong any help is appriciated :)
wordfinder.cpp: In function 'bool parseSize(std::string, int&, int&)':
wordfinder.cpp:120: error: 'isInteger' was not declared in this scope
In the first code snippet, move the IsInteger() function definition to above the parseSize() function definition.
Thought I'd comment on this:
Function definitions are already included by the header file which is included by the pre-processor before compile time.
Where the actual function is placed in the .cpp file is irrelevant.
edit:
Unless of course your not using headers, simply functions as part of a file.
eg won't work:
Will also work... though this is probably irrelevant. Also take note that I really didn't read much into this thread, and may be saying something stupid...
Thought I'd comment on this:
Function definitions are already included by the header file which is included by the pre-processor before compile time.
Where the actual function is placed in the .cpp file is irrelevant.
Ah...
Thanks, I knew this was true for regular functions, wasn't sure about methods.