In C++, the compiler must know about a function before you use it. In your code, you are trying to use the function strFunct before you have told the compiler about it.
There are two ways you can tell the compiler about it.
1) Declare the function, using a prototype: string strFunct();
2) Put the whole definition of the function before the main function.