main.cpp - #include <iostream> #include <iomanip> #include...

This preview shows page 1 out of 1 page.

#include <iostream>#include <iomanip>#include <sstream>#include <fstream>using namespace std;int main(){string filename;ifstream input;int n;int sum=0;int count=0;do{cout<<"Enter file name"<<endl;cin>>filename;input.clear();input.open(filename.c_str());
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
Aars
Tags
Filename

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture