びしょの日記 (vipshota’s diary)

これはショタコン的視点からの雑多な日記帳です。まじめな記事が5割、ふまじめな記事が5割でできています。将来黒歴史になる予定です。

男の子と女の子の違い(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();
                    }
                }
            }
        }
    }
}

分かる?