Demo entry 5862402

a

   

Submitted by anis on Aug 04, 2016 at 13:11
Language: C++. Code size: 241 Bytes.

void initializer(Int x)
// Int is an alias used for integers
{
    int bits = 0;         // don't: avoidable code
    for (Int i = 1; i; i <<= 1)
        ++bits;
    if (bits < 32)
        cerr << "Int too small\n";

    // ...
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).