Кресты / Говнокод #1559 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
//retrive the weather file
    QProcess* process = new QProcess(this);
    QString command = "wget -O " + QDir::homePath() + "/.weather.xml http://weather.yahooapis.com/forecastrss?p=" + zip;

    if(tempType == "C")
    {
       command.append("&u=c");
    }
    
    process->start(command);
    process->waitForFinished();
    delete process;

Учитесь писать переносимый код!

Запостил: Sauron Sauron, (Updated )

Комментарии (0) RSS

Добавить комментарий

Переведи на "PHP", guest!

    А не использовать ли нам bbcode?


    8