You are calling the GetLine declared non-static from within a static function.
Either mark the GetLine declaration as static, or create an instance of the class containing both the functions.
You are calling the GetLine declared non-static from within a static function.
Either mark the GetLine declaration as static, or create an instance of the class containing both the functions.