Qaltilon

Hurr Durr

Nov 25th, 2011
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. void operator<< (const Datum &date){
  2. unsigned int cmonth = date.month;
  3. cout << date.day << ".";
  4. try{
  5. if(date.month==1)throw "Januar";
  6. else if(cmonth==2)throw "Februar";
  7. else if(cmonth==3)throw "Maerz";
  8. else if(cmonth==4)throw "April";
  9. else if(cmonth==5)throw "Mail";
  10. else if(cmonth==6)throw "Juni";
  11. else if(cmonth==7)throw "Juli";
  12. else if(cmonth==8)throw "August";
  13. else if(cmonth==9)throw "September";
  14. else if(cmonth==10)throw "Oktober";
  15. else if(cmonth==11)throw "November";
  16. else if(cmonth==12)throw "Dezember";
  17. }
  18. catch(cmonth){
  19. cout << cmonth;
  20. }
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment