filestream – C++ Void Function with File Stream Error

filestream – C++ Void Function with File Stream Error

Thats std::ifstream to you. Or else, add using namespace std; after all #includes and before the rest of the code.

change:

void getName(ifstream& shoppingCartInput, string& firstname, string& lastname);
using namespace std;

to:

using namespace std;
void getName(ifstream& shoppingCartInput, string& firstname, string& lastname);

filestream – C++ Void Function with File Stream Error

Leave a Reply

Your email address will not be published.