Hi, i am very new to C++ programming and i'm really keen to learn. However, i've run into a problem and it's stressing me out! i've googled and searched this forum but cannot find a solution. i did find someone with a similar problem but their fix didn't fix mine.
anyway, here is the code and the error i'm getting when trying to compile.
int factorial(int nTarget);
#endif // FACTORIAL_H_INCLUDED
And here is the error i'm getting.
G:\c++\Projects\FactorialModule\main.cpp||In function 'int main(int, char**)':|
G:\c++\Projects\FactorialModule\main.cpp|28|error: 'factorial' was not declared in this scope|
||=== Build finished: 1 errors, 0 warnings ===|
many many thanks to anyone that can help me with this. it's making my brain hurt!!