Question: #include #include using namespace std; double sum ( ifstream in ) / * Fix this code line * / { double total = 0 ;
#include
#include
using namespace std;
double sumifstream in Fix this code line
double total ;
double input;
while in input total total input;
return total;
int main
string filename;
cin filename;
ifstream infilename;
cout sumin endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
