| Ankman | well | 01:03 |
|---|---|---|
| Mobidoy | J'aurais besoin de programmeurs qui me vérifie ce petit exercise SVP, il faut la valeur final de x,y et z mais, selon mes essais, je tombe en infinite loop dès que j'entre dans la boucle do du if !!! Merci http://paste.ubuntu.com/721868/ | 20:37 |
| cyphermox | tu l'as roulé? | 20:48 |
| cyphermox | ou tu as juste calculé sur une feuille? | 20:49 |
| cyphermox | moi j'arrive pas a un infinite loop si je le calcule à bras... | 20:49 |
| cyphermox | mais j'ai bien pu faire une erreur | 20:49 |
| Mobidoy | a bras... c'est supposé donner... sec | 21:00 |
| cyphermox | 0 / 20 / 4 | 21:00 |
| cyphermox | as-tu compté la différence entre / et % ? | 21:00 |
| Mobidoy | bin ca doit etre la l'erreur, tu as les bon chiffre... | 21:02 |
| Mobidoy | comment tu sors de la bouble avec le x != 0 | 21:03 |
| cyphermox | e.g. 1 % 10 = 1, 10 % 10 = 0, 14/10 = 1, 14 % 10 = 4 | 21:03 |
| Mobidoy | ok mais x = 10 quand pour faire un % 0 ? | 21:04 |
| cyphermox | 1/10 = 0 | 21:04 |
| cyphermox | ligne 14: x = x / 10; | 21:04 |
| Mobidoy | round of to the nearest automatic ? | 21:04 |
| cyphermox | a la fin de la ligne 13 t'as x = 1 | 21:05 |
| cyphermox | sur des operation sur des int, oui | 21:05 |
| cyphermox | int / int = int | 21:05 |
| Mobidoy | oui je suis dac mais je pensait comme c'est un int, ca arrondissait au nombre | 21:06 |
| cyphermox | non | 21:06 |
| Mobidoy | laisse faire, je viens d'allumer !! | 21:06 |
| cyphermox | ca truncate ;) | 21:06 |
| Mobidoy | ouais... | 21:06 |
| Mobidoy | tu vois, chaque fois que je te jase, je clique mon erreur !!! | 21:06 |
| cyphermox | ta table au complet c'est ca : http://paste.ubuntu.com/721899/ | 21:07 |
| cyphermox | mais je l'ai fait à la main avant ;) | 21:08 |
| cyphermox | pangolin: I'm running on precise now :D | 21:08 |
| Mobidoy | Merci :-) | 21:20 |
| cyphermox | Mobidoy: pis, ca avance ton truc? | 23:19 |
| cyphermox | finalement t'avais eu une réponse pour le cours d'info? | 23:19 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!