Mistři v programování na #hovnokod


Anonymous,

bool checkForExe(std::string ext)
{
    return ext==".exe" ? true : 
              ext==".Exe" ? true :
              ext==".eXe" ? true :
              ext==".EXe" ? true :
              ext==".exE" ? true :
              ext==".ExE" ? true :
              ext==".eXE" ? true :
              ext==".EXE" ? true : false;
}

Anonymous,


klatys,


Anonymous,

boolean is_admin;
// something
Boolean b = new Boolean( is_admin );
if( b.toString().length() == 4 ) {
   // something...
}
// something

Anonymous,