meraba, acil bir odevim var.. ben biraz yaptım fakat bu throw class ında diğer Customer class ında ki verileri kullanmayı yapamadımm... odevde customer.txt dosyasından 10 kişinin id,name,reneweal/canceled,renewal date,amount değerleri okunup, farklı iki throw seceneği ile throw edilip, yeniden başka bir dosya oluşturulacak..
odev dosyası bu adreste:
http: // rapidshare.de/files/41306008/223hw3.doc.html

benim yazdıgım kodlar bu ::

#include
#include
#include
using namespace std;
ifstream input("customer.txt");
ofstream output("canceled.txt");
class Error

virtual void print()=0;
};
class Warning: public Error

virtual void print()
};
class Renew: public Error

virtual void print();
};
void Renew:: print()

class Customer

int find();
int lost();
int total();
int count();
};
int Customer::find()

int Customer::total()

int Customer::count()

int Customer::lost()

int main()

}
catch (Error *w)

}
for (int i=0; i