std::cinis std::istream.
There are few differences between a class istreamand its derivative ifstream. ifstreamallows you to open and close files, providing open(), close()and is_open(), and a constructor that calls open()- and what it is!
, istream& ifstream&.