男の子と女の子の違い(C++編)
付き合っている相手が男と女のときの違いについてC++で記述してみた。
男の子の場合
void boy() { try{ if(do_something()){ throw std::exception(); } }catch(...){ sex(); } }
女の子の場合
void girl() { try{ int error_count=0; while(true){ try{ if(do_something()){ throw std::exception(); } }catch(...){ error_count++; } if(error_count>error_limit){ break; } } throw std::exception(); }catch(...){ try{ if(sex()){ throw std::exception(); } }catch(...){ try{ if(shopping()){ throw std::exception(); } }catch(...){ try{ if(eat()){ throw std::exception(); } }catch(...){ if(apology()){ throw std::exception(); } } } } } }
分かる?