Эти люди пишут книги...

    Date: 03/13/07 (Code WTF)    Keywords: programming

    Примеры найдены в Programming C# by Jesse Liberty (O'Reilly, 2003)

    public double Pow(double x, double y){
       double retVal = x;
       for (int i = 0;i < y-1;i++){
          retVal *= x;
       }
       return retVal;
    }

    private void Order_Click(object sender, System.EventArgs e){
        string msg;
        msg = "Thank you " + txtName.Text +". You chose " ;
        for (int i = 0;i

    (UPD: Во втором фрагменте - цикл по списку радиокнопок)

    Source: http://community.livejournal.com/code_wtf/71967.html

« M$ SQL Server suxxx || нашел только что »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home