Memorable 32-bit value as a constant

前端 未结 12 1636
借酒劲吻你
借酒劲吻你 2021-01-03 01:39

I am looking for a memorable 32-bit value to be used as a constant. If possible, it should be somewhat funny too.

So far, I have come up with these two:

<         


        
12条回答
  •  既然无缘
    2021-01-03 01:59

    I wonder, that as a programmer you need to ask. After all it takes a word-list and a one-liner of C++ to find suitable words.

    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    int main()
    {
        using namespace boost::lambda;
        std::remove_copy_if(
            std::istream_iterator(std::cin),
            std::istream_iterator(),
            std::ostream_iterator(std::cout, " "),
            bind(&std::string::size, _1) != 8u
                ||
            bind(
                static_cast(
                    &std::string::find_first_not_of
                ),
                _1,
                "abcdefgiost",
                0u
            ) != std::string::npos
        );
    }
    

提交回复
热议问题