Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void operator<< (const Datum &date){
- unsigned int cmonth = date.month;
- cout << date.day << ".";
- try{
- if(date.month==1)throw "Januar";
- else if(cmonth==2)throw "Februar";
- else if(cmonth==3)throw "Maerz";
- else if(cmonth==4)throw "April";
- else if(cmonth==5)throw "Mail";
- else if(cmonth==6)throw "Juni";
- else if(cmonth==7)throw "Juli";
- else if(cmonth==8)throw "August";
- else if(cmonth==9)throw "September";
- else if(cmonth==10)throw "Oktober";
- else if(cmonth==11)throw "November";
- else if(cmonth==12)throw "Dezember";
- }
- catch(cmonth){
- cout << cmonth;
- }
Advertisement
Add Comment
Please, Sign In to add comment