cyberphant0m
Member
Im trying to write a simple card game, and I have a BunchOfCards class to represent collections of cards. Im trying to overload the << operator, so that a filestream binded to a formatted text file, will fill that collection with Card objects.
The code I have is for the overloaded operator, below, and the driver program to test it. I checked www.cplusplus.com reference, and it says that ifstream and fstream inherit the getline() method, but i've tried both, and my compiler (Dev-C++) tells me theres no matching function for it.
Can anyone help? Thanks
The code I have is for the overloaded operator, below, and the driver program to test it. I checked www.cplusplus.com reference, and it says that ifstream and fstream inherit the getline() method, but i've tried both, and my compiler (Dev-C++) tells me theres no matching function for it.
Can anyone help? Thanks