Bob.Killer ¤Sm0Q¤ Addict

Inscrit le: 20 Fév 2005 Messages: 3382 Localisation: Chatou
|
Posté le: 31 Jan 2012, 15:06 Sujet du message: Calcul de ton Spending Quotient |
|
|
Magus tuto:
http://eu.battle.net/sc2/fr/forum/topic/2793221142
SQ = 35 * (0,00137 * I – LN(U)) + 240
Code: | #include<iostream>
#include<math.h>
// lien: http://eu.battle.net/sc2/fr/forum/topic/2793221142
int main()
{
int iIncome, iNotSpend, SQ;
std::cout << "Taux de récolte des ressources ?" << std::endl;
std::cin >> iIncome;
std::cout << "Ressources non dépensés ?" << std::endl;
std::cin >> iNotSpend;
SQ = (int)(35.0f * (0.00137f * (float)iIncome - logf((float)iNotSpend)) + 240.0f);
std::cout << "Ton SQ est de:" << SQ << std::endl;
std::cout << "(Rappel: Bronze~40 / Argent~48 / Or~53 / Platine~59 / Diamant~65 / Maitre~72 / Grand Maitre~83)" << std::endl;
std::cin >> iIncome;
return 0;
} |
_________________ Je m'appelle Inigo Montoya, tu as tué mon père, prépare toi à mourir ! |
|