![]() |
![]() |
![]() |
![]() |
![]() |
|
Now return your attention to do_analysis. The do_analysis
function must have a return type, which happens to be void, and
a parameter type, which must indicate that the argument belongs to the
ifstream class. To prevent copying, the parameter is a
call-by-reference parameter:
void do_analysis (ifstream& car_stream) {...}