1. C++ / Говнокод #7737

    +153

    1. 1
    2. 2
    3. 3
    bool (A::*F[2])(int);
    //...
    return (this->*F[n])(i);

    CPPGovno, 02 Сентября 2011

    Комментарии (2)
  2. Куча / Говнокод #7736

    +144

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    Говнокод за последние 2 года превратился в унылое говно и с этим ничего не поделаешь.
    Постится одна хуйня, толпа бешеных долбоёбов минусует всё подряд, половина из выложенного - откровенный троллинг.
    Все поливают друг друга говном и меряются письками как в детском саду.
    Это что по-вашему govnocomment.ru?
    Сосните хуйцов, уроды.

    Fai, 02 Сентября 2011

    Комментарии (37)
  3. Куча / Говнокод #7735

    +138

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    error LNK2001: unresolved external symbol "private: static class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class 
    std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class
     std::map<__int64,class k3bufferblock,struct std::less<__int64>,class std::allocator<struct 
    std::pair<__int64 const ,class k3bufferblock> > >,struct std::less<class std::basic_string<char,struct 
    std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class 
    std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class 
    std::map<__int64,class k3bufferblock,struct std::less<__int64>,class std::allocator<struct 
    std::pair<__int64 const ,class k3bufferblock> > > > > >,struct std::less<class 
    std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class 
    std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class 
    std::allocator<char> > const ,class std::map<class std::basic_string<char,struct 
    std::char_traits<char>,class std::allocator<char> >,class std::map<__int64,class k3bufferblock,struct 
    std::less<__int64>,class std::allocator<struct std::pair<__int64 const ,class k3bufferblock> > >,struct 
    std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > 
    >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class 
    std::allocator<char> > const ,class std::map<__int64,class k3bufferblock,struct 
    std::less<__int64>,class std::allocator<struct std::pair<__int64 const ,class k3bufferblock> > > > > > 
    > > > k3entity_cache::buffercache" (?buffercache@k3entity_cache@@0V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$map@V?$basic_string@DU?
    $char_traits@D@std@@V?$allocator@D@2@@std@@V?$map@_JVk3bufferblock@@U?$less@_J@std@@V?$allocator@U?$pair@$$CB_JVk3bufferblock@@@std@@@3@@2@U?$less@V?
    $basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?
    $map@_JVk3bufferblock@@U?$less@_J@std@@V?$allocator@U?$pair@$$CB_JVk3bufferblock@@@std@@@3@@2@@std@@@2@@2@U?$less@V?$basic_string@DU?
    $char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$map@V?$basic_string@DU?
    $char_traits@D@std@@V?$allocator@D@2@@std@@V?$map@_JVk3bufferblock@@U?$less@_J@std@@V?$allocator@U?$pair@$$CB_JVk3bufferblock@@@std@@@3@@2@U?$less@V?
    $basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?
    $map@_JVk3bufferblock@@U?$less@_J@std@@V?$allocator@U?$pair@$$CB_JVk3bufferblock@@@std@@@3@@2@@std@@@2@@2@@std@@@2@@std@@A)

    CPPGovno, 02 Сентября 2011

    Комментарии (3)
  4. C++ / Говнокод #7734

    +147

    1. 1
    int (*arr)[3];

    CPPGovno, 02 Сентября 2011

    Комментарии (0)
  5. C++ / Говнокод #7733

    +147

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    struct VS_INPUT_STRUCT //вхідні дані
    {
        float4 position: POSITION;
        float3 normal:   NORMAL;
    };
    
    struct VS_OUTPUT_STRUCT //вихідні дані
    {
         float4 position: POSITION;
         float3 light:    TEXCOORD0;
         float3 normal:   TEXCOORD1;
    };

    CPPGovno, 01 Сентября 2011

    Комментарии (29)
  6. Java / Говнокод #7732

    +81

    1. 1
    2. 2
    3. 3
    4. 4
    THIS:while(true){
                if(true)break;
                ...
    }

    fcuk ну как так можно кодить?

    Mooncrafter, 01 Сентября 2011

    Комментарии (18)
  7. C++ / Говнокод #7731

    +172

    1. 1
    2. 2
    char readByffer[102]={0};
    std::string dataStrong = readByffer;

    CPPGovno, 01 Сентября 2011

    Комментарии (8)
  8. PHP / Говнокод #7730

    +163

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    if(!defined("USER")){
    	define("USER", true);
    	define("EXTRA_ADMIN_COOKIE", '3794y7v387o3');
    }else{
    	return;
    }

    Мартин, 01 Сентября 2011

    Комментарии (4)
  9. Perl / Говнокод #7729

    −180

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    my $success=0;
    my $error=0;
    
    ...        
    
    my $result_mail=MailUtils::attach_mail(-to=>$share_email,-message=>$message,-subject=>'Новый рецепт',-src_enc => $Cfg::encoding,-attach=>\@att) or die 'no';
    unlink($file) if $result_mail;
    $error=1 if !$result_mail;
    
    $success=1 if $error==0;
    print CGI::redirect($Cfg::url{root}."/woman/recipes/share/?success=$success&error=$error");

    Используем две переменных для статуса, видимо, для надёжности

    Suor, 01 Сентября 2011

    Комментарии (26)
  10. PHP / Говнокод #7728

    +173

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    //Функция возвращает номер месяца по названию
    	  function month_to_num ($month) {
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("январь"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("января"),"UTF-8")) {$num = 1;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("февраль"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("февраля"),"UTF-8")) {$num = 2;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("март"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("марта"),"UTF-8")) {$num = 3;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("апрель"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("апреля"),"UTF-8")) {$num = 4;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("май"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("мая"),"UTF-8")) {$num = 5;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("июнь"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("июня"),"UTF-8")) {$num = 6;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("июль"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("июля"),"UTF-8")) {$num = 7;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("август"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("августа"),"UTF-8")) {$num = 8;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("сентябрь"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("сентября"),"UTF-8")) {$num = 9;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("октябрь"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("октября"),"UTF-8")) {$num = 10;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("ноябрь"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("ноября"),"UTF-8")) {$num = 11;}
          if (mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("декабрь"),"UTF-8") || mb_strtolower($month,"UTF-8") == mb_strtolower($this->t("декабря"),"UTF-8")) {$num = 12;}
    				  return $month;
    	  }

    vaska_proger, 01 Сентября 2011

    Комментарии (11)