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

[ad_1]

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

[ad_2]

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