[Solved] how to get return value from the the subroutine functrion to the main function?


Change the function to return int instead of void. Then you’ll be able to uncomment the return statement.

int Read_line (string filename)
{
    ...
    return number_of_lines;
}

0

solved how to get return value from the the subroutine functrion to the main function?