Jump to content

[Resolvido] Duvida na implementacao de um algoritmo em C++


Recommended Posts

Posted

Boas, antes demais sou novo neste site, desde ja os meus parabens por este trabalho.

o meu problema e o seguinte:

69.55+26.16*log(fc)-13.82*log(ht)-(1.1*log(fc)-0.7)*hr-(1.56*log(fc)-0.8)+(44.9-6.55*log(ht)*log(d)

fc , ht  , hr e d sao valores dados pelo utilizador. eu no programa meti o seguinte:

result = 69.55+26.16*log(fc)-13.82*log(ht)-(1.1*log(fc)-0.7)*hr-(1.56*log(fc)-0.8)+(44.9-6.55*log(ht)*log(d);

a compilar da erro :s

agradeco desde ja a ajuda.

Posted

result = 69.55+26.16*log(fc)-13.82*log(ht)-(1.1*log(fc)-0.7)*hr-(1.56*log(fc)-0.8)+(44.9-6.55*log(ht)*log(d);

Conta os parentesis

result = 69.55+26.16*log(fc)-13.82*log(ht)-(1.1*log(fc)-0.7)*hr-(1.56*log(fc)-0.8)+(44.9-6.55*log(ht)*log(d);
// abrir                1             2    3       4            5        6         7             8       9
// fechar                  1             2            3    4                5    6                  7      8

What have you tried?

Não respondo a dúvidas por PM

A minha bola de cristal está para compor; deve ficar pronta para a semana.

Torna os teus tópicos mais atractivos e legíveis usando a tag CODE para colorir o código!

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.