#include #include //for file input and output #include #include using namespace std; int main (int argc, char *argv[]) { ifstream infile("surface.txt"); // associate surface.txt with infile int n; filein.open("surface.txt"); //opening file if (!filein.fail()) { filein.ignore(80, '\n'); filein>>length>>width>>height; cout<<" Length Width Height Volume"<>length>>width>>height; }//end of while }//end of if else { cout<<"Error opening file"<