class CMixMinNotes : public CMix
{
public:
#define CMIXMINNOTES_NAME ("Minimum Notes")
#define CMIXMINNOTES_MIX_NUMBER (1)
CMixMinNotes(): CMix( Algorithm, MinBills, CMIXMINNOTES_NAME ){};
CDenomination Calculate( ULONG Amount, unsigned int Currency,
unsigned int NumCashUnits, const CCashUnit CashUnits[], unsigned int MaxNumNotes ) const;
bool Load( ifstream LoadFile ){ return( CMix::Load( LoadFile ) ); };
bool Store( ofstream StoreFile )const{ return( CMix::Store( StoreFile ) ); } ;
private:
bool CalculateR( ULONG Amount, unsigned int Currency, unsigned int LastCashUnit,
unsigned int NumCashUnits, const CCashUnit CashUnits[], bool CassetteUsedForMix[],
CDenomination *RetDenomination ) const;
};
编译时
bool Load( ifstream LoadFile ){ return( CMix::Load( LoadFile ) ); };
bool Store( ofstream StoreFile )const{ return( CMix::Store( StoreFile ) ); } ;
出现错误
error C2280: 'std::basic_ifstream<char,std::char_traits<char>>::basic_ifstream(const std::basic_ifstream<char,std::char_traits<char>> &)' : attempting to reference a deleted function
不行的
追答source code给我看看哇