The definition of std::ifstream::open is as follows
(according to
www.cplusplus.com &
www.cppreference.com):
void open (const char* filename, ios_base::openmode mode = ios_base::in);
void open (const string& filename, ios_base::openmode mode = ios_base::in);
this means that both the open member functions take two parameters. HOWEVER, I can open a stream as follows:
ifstream inFile;
inFile.open("input.dat");
Why isn't the open member function that takes one parameter part of the
www.cplusplus.com std::ifstream::open definition?