Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
5133 connectés 

 

Sujet(s) à lire :
    - Who's who@Programmation
 

 Mot :   Pseudo :  
  Aller à la page :
 
 Page :   1  2  3  4  5  ..  11875  11876  11877  ..  26992  26993  26994  26995  26996  26997
Auteur Sujet :

[blabla@olympe] Le topic du modo, dieu de la fibre et du monde

n°1563598
Elmoricq
Modérateur
Posté le 22-05-2007 à 16:36:20  profilanswer
 

Reprise du message précédent :
On est limité en nombre de "case when ..." dans une requête SQL ? [:opus dei]

mood
Publicité
Posté le 22-05-2007 à 16:36:20  profilanswer
 

n°1563617
nraynaud
lol
Posté le 22-05-2007 à 16:57:35  profilanswer
 

Elmoricq a écrit :

On est limité en nombre de "case when ..." dans une requête SQL ? [:opus dei]


[:pingouino]
 
par la mémoire dispo pour le parser j'imagine [:pingouino]


---------------
trainoo.com, c'est fini
n°1563618
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 22-05-2007 à 16:58:25  profilanswer
 

Elmoricq a écrit :

On est limité en nombre de "case when ..." dans une requête SQL ? [:opus dei]


ça sent l'Oracle ça... me gourre-je ?

n°1563621
Elmoricq
Modérateur
Posté le 22-05-2007 à 16:59:55  profilanswer
 

Sybase, sur un système tout pourri [:klem3i1]
 
Mais j'ai mis ma procrastination de côté et je réécris le bazar pour un truc plus propre.

n°1563631
Master p
My new cock ring :D
Posté le 22-05-2007 à 17:16:55  profilanswer
 

Code :
  1. string itoa_annee(int annee) {
  2.   string reponse;
  3.   if (annee == 1950) {
  4.     reponse="1950";}
  5.   else if (annee == 1951) {
  6.     reponse="1951";}
  7.          ........
  8.   else if (annee == 2009) {
  9.     reponse="2009";}
  10.   else if (annee == 2010) {
  11.     reponse="2010";}
  12.   return reponse;
  13. }

Et j'ai la même chose pour les 12 mois et les 31 jours
la classe [:cerveau sol]

 

Si cette librairie intéresse quelqu'un, PM [:dawao]

 

edit : finalement, la version complète parce que ça vaut le coup [:aloy]

Code :
  1. //---------------------------------
  2. string itoa_annee(int annee) {
  3.   string reponse;
  4.   if (annee == 1950) {
  5.     reponse="1950";}
  6.   else if (annee == 1951) {
  7.     reponse="1951";}
  8.   else if (annee == 1952) {
  9.     reponse="1952";}
  10.   else if (annee == 1953) {
  11.     reponse="1953";}
  12.   else if (annee == 1954) {
  13.     reponse="1954";}
  14.   else if (annee == 1955) {
  15.     reponse="1955";}
  16.   else if (annee == 1956) {
  17.     reponse="1956";}
  18.   else if (annee == 1957) {
  19.     reponse="1957";}
  20.   else if (annee == 1958) {
  21.     reponse="1958";}
  22.   else if (annee == 1959) {
  23.     reponse="1959";}
  24.   else if (annee == 1960) {
  25.     reponse="1960";}
  26.   else if (annee == 1961) {
  27.     reponse="1961";}
  28.   else if (annee == 1962) {
  29.     reponse="1962";}
  30.   else if (annee == 1963) {
  31.     reponse="1963";}
  32.   else if (annee == 1964) {
  33.     reponse="1964";}
  34.   else if (annee == 1965) {
  35.     reponse="1965";}
  36.   else if (annee == 1966) {
  37.     reponse="1966";}
  38.   else if (annee == 1967) {
  39.     reponse="1967";}
  40.   else if (annee == 1968) {
  41.     reponse="1968";}
  42.   else if (annee == 1969) {
  43.     reponse="1969";}
  44.   else if (annee == 1970) {
  45.     reponse="1970";}
  46.   else if (annee == 1971) {
  47.     reponse="1971";}
  48.   else if (annee == 1972) {
  49.     reponse="1972";}
  50.   else if (annee == 1973) {
  51.     reponse="1973";}
  52.   else if (annee == 1974) {
  53.     reponse="1974";}
  54.   else if (annee == 1975) {
  55.     reponse="1975";}
  56.   else if (annee == 1976) {
  57.     reponse="1976";}
  58.   else if (annee == 1977) {
  59.     reponse="1977";}
  60.   else if (annee == 1978) {
  61.     reponse="1978";}
  62.   else if (annee == 1979) {
  63.     reponse="1979";}
  64.   else if (annee == 1980) {
  65.     reponse="1980";}
  66.   else if (annee == 1981) {
  67.     reponse="1981";}
  68.   else if (annee == 1982) {
  69.     reponse="1982";}
  70.   else if (annee == 1983) {
  71.     reponse="1983";}
  72.   else if (annee == 1984) {
  73.     reponse="1984";}
  74.   else if (annee == 1985) {
  75.     reponse="1985";}
  76.   else if (annee == 1986) {
  77.     reponse="1986";}
  78.   else if (annee == 1987) {
  79.     reponse="1987";}
  80.   else if (annee == 1988) {
  81.     reponse="1988";}
  82.   else if (annee == 1989) {
  83.     reponse="1989";}
  84.   else if (annee == 1990) {
  85.     reponse="1990";}
  86.   else if (annee == 1991) {
  87.     reponse="1991";}
  88.   else if (annee == 1992) {
  89.     reponse="1992";}
  90.   else if (annee == 1993) {
  91.     reponse="1993";}
  92.   else if (annee == 1994) {
  93.     reponse="1994";}
  94.   else if (annee == 1995) {
  95.     reponse="1995";}
  96.   else if (annee == 1996) {
  97.     reponse="1996";}
  98.   else if (annee == 1997) {
  99.     reponse="1997";}
  100.   else if (annee == 1998) {
  101.     reponse="1998";}
  102.   else if (annee == 1999) {
  103.     reponse="1999";}
  104.   else if (annee == 2000) {
  105.     reponse="2000";}
  106.   else if (annee == 2001) {
  107.     reponse="2001";}
  108.   else if (annee == 2002) {
  109.     reponse="2002";}
  110.   else if (annee == 2003) {
  111.     reponse="2003";}
  112.   else if (annee == 2004) {
  113.     reponse="2004";}
  114.   else if (annee == 2005) {
  115.     reponse="2005";}
  116.   else if (annee == 2006) {
  117.     reponse="2006";}
  118.   else if (annee == 2007) {
  119.     reponse="2007";}
  120.   else if (annee == 2008) {
  121.     reponse="2008";}
  122.   else if (annee == 2009) {
  123.     reponse="2009";}
  124.   else if (annee == 2010) {
  125.     reponse="2010";}
  126.   return reponse;
  127. }
  128. //---------------------------------
  129. string itoa_mois(int mois) {
  130.   string reponse;
  131.   if      (mois == 1)  reponse="01";
  132.   else if (mois == 2)  reponse="02";
  133.   else if (mois == 3)  reponse="03";
  134.   else if (mois == 4)  reponse="04";
  135.   else if (mois == 5)  reponse="05";
  136.   else if (mois == 6)  reponse="06";
  137.   else if (mois == 7)  reponse="07";
  138.   else if (mois == 8)  reponse="08";
  139.   else if (mois == 9)  reponse="09";
  140.   else if (mois == 10) reponse="10";
  141.   else if (mois == 11) reponse="11";
  142.   else if (mois == 12) reponse="12";
  143.   return reponse;
  144. }
  145. //---------------------------------
  146. string itoa_day(int day) {
  147.   string reponse;
  148.   if      (day == 1)  reponse="01";
  149.   else if (day == 2)  reponse="02";
  150.   else if (day == 3)  reponse="03";
  151.   else if (day == 4)  reponse="04";
  152.   else if (day == 5)  reponse="05";
  153.   else if (day == 6)  reponse="06";
  154.   else if (day == 7)  reponse="07";
  155.   else if (day == 8)  reponse="08";
  156.   else if (day == 9)  reponse="09";
  157.   else if (day == 10) reponse="10";
  158.   else if (day == 11) reponse="11";
  159.   else if (day == 12) reponse="12";
  160.   else if (day == 13) reponse="13";
  161.   else if (day == 14) reponse="14";
  162.   else if (day == 15) reponse="15";
  163.   else if (day == 16) reponse="16";
  164.   else if (day == 17) reponse="17";
  165.   else if (day == 18) reponse="18";
  166.   else if (day == 19) reponse="19";
  167.   else if (day == 20) reponse="20";
  168.   else if (day == 21) reponse="21";
  169.   else if (day == 22) reponse="22";
  170.   else if (day == 23) reponse="23";
  171.   else if (day == 24) reponse="24";
  172.   else if (day == 25) reponse="25";
  173.   else if (day == 26) reponse="26";
  174.   else if (day == 27) reponse="27";
  175.   else if (day == 28) reponse="28";
  176.   else if (day == 29) reponse="29";
  177.   else if (day == 30) reponse="30";
  178.   else if (day == 31) reponse="31";
  179.   return reponse;
  180. }
  181. //---------------------------------
  182. string itoa_amoi(int i) {
  183.   string reponse;
  184.   if      (i == 1)  reponse="1";
  185.   else if (i == 2)  reponse="2";
  186.   else if (i == 3)  reponse="3";
  187.   else if (i == 4)  reponse="4";
  188.   else if (i == 5)  reponse="5";
  189.   else if (i == 6)  reponse="6";
  190.   else if (i == 7)  reponse="7";
  191.   else if (i == 8)  reponse="8";
  192.   else if (i == 9)  reponse="9";
  193.   else if (i == 10) reponse="10";
  194.   else if (i == 11) reponse="11";
  195.   else if (i == 12) reponse="12";
  196.   else if (i == 13) reponse="13";
  197.   else if (i == 14) reponse="14";
  198.   else if (i == 15) reponse="15";
  199.   else if (i == 16) reponse="16";
  200.   else if (i == 17) reponse="17";
  201.   else if (i == 18) reponse="18";
  202.   else if (i == 19) reponse="19";
  203.   else if (i == 20) reponse="20";
  204.   else if (i == 21) reponse="21";
  205.   else if (i == 22) reponse="22";
  206.   else if (i == 23) reponse="23";
  207.   else if (i == 24) reponse="24";
  208.   else if (i == 25) reponse="25";
  209.   else if (i == 26) reponse="26";
  210.   else if (i == 27) reponse="27";
  211.   else if (i == 28) reponse="28";
  212.   else if (i == 29) reponse="29";
  213.   else if (i == 30) reponse="30";
  214.   else if (i == 31) reponse="31";
  215.   else if (i == 32) reponse="32";
  216.   else if (i == 33) reponse="33";
  217.   else if (i == 34) reponse="34";
  218.   else if (i == 35) reponse="35";
  219.   else if (i == 36) reponse="36";
  220.   else if (i == 37) reponse="37";
  221.   else if (i == 38) reponse="38";
  222.   else if (i == 39) reponse="39";
  223.   else if (i == 40) reponse="40";
  224.   else if (i == 41) reponse="41";
  225.   else if (i == 42) reponse="42";
  226.   else if (i == 43) reponse="43";
  227.   else if (i == 44) reponse="44";
  228.   else if (i == 45) reponse="45";
  229.   else if (i == 46) reponse="46";
  230.   else if (i == 47) reponse="47";
  231.   else if (i == 48) reponse="48";
  232.   else if (i == 49) reponse="49";
  233.   else if (i == 50) reponse="50";
  234.   else if (i == 51) reponse="51";
  235.   else if (i == 52) reponse="52";
  236.   else if (i == 53) reponse="53";
  237.   else if (i == 54) reponse="54";
  238.   else if (i == 55) reponse="55";
  239.   else if (i == 56) reponse="56";
  240.   else if (i == 57) reponse="57";
  241.   else if (i == 58) reponse="58";
  242.   else if (i == 59) reponse="59";
  243.   else if (i == 60) reponse="60";
  244.   else if (i == 61) reponse="61";
  245.   else if (i == 62) reponse="62";
  246.   else if (i == 63) reponse="63";
  247.   else if (i == 64) reponse="64";
  248.   else if (i == 65) reponse="65";
  249.   else if (i == 66) reponse="66";
  250.   else if (i == 67) reponse="67";
  251.   else if (i == 68) reponse="68";
  252.   else if (i == 69) reponse="69";
  253.   else if (i == 70) reponse="70";
  254.   return reponse;
  255. }

Message cité 4 fois
Message édité par Master p le 22-05-2007 à 17:18:41

---------------
HAHAHA I M USING TEH INTERNET
n°1563636
skeye
Posté le 22-05-2007 à 17:22:00  profilanswer
 

master p> [:moule_bite] de platine. [:roane]


Message édité par skeye le 22-05-2007 à 17:22:09

---------------
Can't buy what I want because it's free -
n°1563638
gooopil
pfiew
Posté le 22-05-2007 à 17:24:34  profilanswer
 


 
Simple curiosité, le type qui a fait ça, il est payé combien ? Pasque la, payé à coup de pierre, ca le vaut même pas, ça use la pierre :o

n°1563642
masklinn
í dag viðrar vel til loftárása
Posté le 22-05-2007 à 17:28:11  profilanswer
 

Master p a écrit :

Code :
  1. string itoa_annee(int annee) {
  2.   string reponse;
  3.   if (annee == 1950) {
  4.     reponse="1950";}
  5.   else if (annee == 1951) {
  6.     reponse="1951";}
  7.          ........
  8.   else if (annee == 2009) {
  9.     reponse="2009";}
  10.   else if (annee == 2010) {
  11.     reponse="2010";}
  12.   return reponse;
  13. }
 

etc...


http://img187.imageshack.us/img187/9503/pingouino9rl.jpghttp://img187.imageshack.us/img187/9503/pingouino9rl.jpghttp://img187.imageshack.us/img187/9503/pingouino9rl.jpg
http://img187.imageshack.us/img187/9503/pingouino9rl.jpghttp://img187.imageshack.us/img187/9503/pingouino9rl.jpghttp://img187.imageshack.us/img187/9503/pingouino9rl.jpg
http://img187.imageshack.us/img187/9503/pingouino9rl.jpghttp://img187.imageshack.us/img187/9503/pingouino9rl.jpghttp://img187.imageshack.us/img187/9503/pingouino9rl.jpg


Message édité par masklinn le 22-05-2007 à 17:28:42

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1563645
gatsu35
Blablaté par Harko
Posté le 22-05-2007 à 17:32:31  profilanswer
 

Master p a écrit :


code de merde
[/cpp]


 
fake :o

n°1563646
el muchach​o
Comfortably Numb
Posté le 22-05-2007 à 17:33:19  profilanswer
 

gooopil a écrit :

Simple curiosité, le type qui a fait ça, il est payé combien ? Pasque la, payé à coup de pierre, ca le vaut même pas, ça use la pierre :o


Il devait être payé à la ligne de code.[:spamafote]

mood
Publicité
Posté le 22-05-2007 à 17:33:19  profilanswer
 

n°1563647
Master p
My new cock ring :D
Posté le 22-05-2007 à 17:34:25  profilanswer
 

On est pas tous des informaticiens [:cerveau o]
 
Et puis, ça l'empêche pas d'être compétent [:cerveau spamafote]


---------------
HAHAHA I M USING TEH INTERNET
n°1563650
Master p
My new cock ring :D
Posté le 22-05-2007 à 17:35:40  profilanswer
 


J'aurais préféré [:cerveau erf]
 
Mais je suis mort de rire en pensant au temps qu'il a passé à écrire ça [:rofl]


---------------
HAHAHA I M USING TEH INTERNET
n°1563651
nraynaud
lol
Posté le 22-05-2007 à 17:38:00  profilanswer
 

Master p a écrit :


Et puis, ça l'empêche pas d'être compétent [:cerveau spamafote]


en natation je suppose [:moule_bite]


---------------
trainoo.com, c'est fini
n°1563653
Chaos Inte​stinal
Posté le 22-05-2007 à 17:43:03  profilanswer
 

Du quode de calita¨Y [:cerveau dawa]

n°1563655
nraynaud
lol
Posté le 22-05-2007 à 17:44:03  profilanswer
 

http://download.eclipse.org/modeli [...] on_Lower()
 
'tain, il va falloir re-configurer les firewall contre certaines javadocs [:pingouino]


---------------
trainoo.com, c'est fini
n°1563656
nraynaud
lol
Posté le 22-05-2007 à 17:48:29  profilanswer
 

nraynaud a écrit :

http://download.eclipse.org/modeli [...] on_Lower()
 
'tain, il va falloir re-configurer les firewall contre certaines javadocs [:pingouino]


la classe correspondante fait 75472 ligne [:pingouino]  
 
j'pense que c'est un fake [:pingouino]
 
 
mais pourquoi c'est moi qui développe ce putain de plugin [:sisicaivrai]
je devais plus faire de dev [:sisicaivrai]


---------------
trainoo.com, c'est fini
n°1563661
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 22-05-2007 à 17:54:51  profilanswer
 

nraynaud a écrit :

http://download.eclipse.org/modeli [...] on_Lower()
 
'tain, il va falloir re-configurer les firewall contre certaines javadocs [:pingouino]


peine de mort

n°1563664
Shinuza
This is unexecpected
Posté le 22-05-2007 à 17:58:20  profilanswer
 

nraynaud a écrit :

http://download.eclipse.org/modeli [...] on_Lower()

 

'tain, il va falloir re-configurer les firewall contre certaines javadocs [:pingouino]


Le téléchargement de la page sature ma bp [:petrus75]

Message cité 1 fois
Message édité par Shinuza le 22-05-2007 à 17:58:31

---------------
Mains power can kill, and it will hurt the entire time you’re dying from it.
n°1563665
0x90
Posté le 22-05-2007 à 17:58:59  profilanswer
 

Master p a écrit :

Code :
  1. string itoa_annee(int annee) {
  2.   string reponse;
  3.   if (annee == 1950) {
  4.     reponse="1950";}
  5.   else if (annee == 1951) {
  6.     reponse="1951";}
  7.          ........
  8.   else if (annee == 2009) {
  9.     reponse="2009";}
  10.   else if (annee == 2010) {
  11.     reponse="2010";}
  12.   return reponse;
  13. }

Et j'ai la même chose pour les 12 mois et les 31 jours
la classe [:cerveau sol]
 
Si cette librairie intéresse quelqu'un, PM [:dawao]
 
edit : finalement, la version complète parce que ça vaut le coup [:aloy]

Code :
  1. ...



 
Et la remarque con qui me vient à l'esprit : "Il aurait au moins pu faire une arbre binaire" [:pingouino]


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°1563666
el muchach​o
Comfortably Numb
Posté le 22-05-2007 à 17:59:20  profilanswer
 

Vraiment bien pensé, l'identifiant unique, chez D'Artagnan (le nom de cette société de service a été volontairement changé  :o). On utilise ce truc une fois tous les 15 du mois, le mot de passe est changé 2 fois par an, et les règles de mots de passe sont suffisamment contraignantes pour qu'on ne s'en souvienne pas si one le note pas.
Donc je clique sur le bouton "Forgotten password ?", et là, qu'est-ce qu'on a ?

 

Type in your first pass phrase:
(10 characters minimum)  
 
Type in your second pass phrase:
(10 characters minimum)

 

Super. [:kiki]


Message édité par el muchacho le 22-05-2007 à 18:00:51
n°1563668
Elmoricq
Modérateur
Posté le 22-05-2007 à 17:59:38  profilanswer
 

0x90 a écrit :

Et la remarque con qui me vient à l'esprit : "Il aurait au moins pu faire une arbre binaire" [:pingouino]


 [:ohmyeyes]

n°1563670
masklinn
í dag viðrar vel til loftárása
Posté le 22-05-2007 à 18:02:38  profilanswer
 

0x90 a écrit :

Et la remarque con qui me vient à l'esprit : "Il aurait au moins pu faire une arbre binaire" [:pingouino]


Moi c'était "il aurait pu utiliser un switch quand même, avec un bon compilo on doit avoir un accès en O(1)" :o


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1563672
0x90
Posté le 22-05-2007 à 18:06:34  profilanswer
 

masklinn a écrit :

Moi c'était "il aurait pu utiliser un switch quand même, avec un bon compilo on doit avoir un accès en O(1)" :o


 
Tu loupe tout le coté esthétique de l'indentation à coup de :
 

Code :
  1. if (annee >= 1975) {
  2.   if (annee >= 1987) {
  3.     if (annee >= 1993) {
  4.     } else {
  5.     }
  6.   } else {
  7.     if (annee >= 1981) {
  8.     } else {
  9.     }
  10.   }
  11. } else {
  12.   if (annee >= 1932) {
  13.   } else {
  14.   }
  15. }


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°1563673
Elmoricq
Modérateur
Posté le 22-05-2007 à 18:08:18  profilanswer
 

C'est pas plus simple avec une requête en BDD ?

n°1563674
Master p
My new cock ring :D
Posté le 22-05-2007 à 18:09:10  profilanswer
 

Moi je me suis dit qu'il aurait pu utiliser  la fonction string left_prec(int, int) que je lui avais fournis [:mullet]
 

Spoiler :

C'est pas vrai en fait, je ne suis arrivé qu'après ce carnage


---------------
HAHAHA I M USING TEH INTERNET
n°1563675
Tristou
Keep calm and hack cookies
Posté le 22-05-2007 à 18:12:08  profilanswer
 

[:rofl] le temps qu'il a du passer à coder ça


---------------
"About your cat Mr. Schrödinger : I have good news and bad news"
n°1563676
masklinn
í dag viðrar vel til loftárása
Posté le 22-05-2007 à 18:14:24  profilanswer
 

0x90 a écrit :

Tu loupe tout le coté esthétique de l'indentation à coup de :
 

Code :
  1. if (annee >= 1975) {
  2.   if (annee >= 1987) {
  3.     if (annee >= 1993) {
  4.     } else {
  5.     }
  6.   } else {
  7.     if (annee >= 1981) {
  8.     } else {
  9.     }
  10.   }
  11. } else {
  12.   if (annee >= 1932) {
  13.   } else {
  14.   }
  15. }



Sinon, il aurait aussi pu faire un array de strings avec chaque string à l'index correspondant à son contenu numérique (donc oui un array de 2100 chaînes pour les années :o)
 
Mieux, il aurait pu optimiser ça en créant un seul array global statique et en l'utilisant dans toutes les fonctions!


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1563678
masklinn
í dag viðrar vel til loftárása
Posté le 22-05-2007 à 18:15:16  profilanswer
 

Au fait, iota_amoi c'est censé représenter quoi [:petrus dei]

Message cité 2 fois
Message édité par masklinn le 22-05-2007 à 18:15:23

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1563679
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 22-05-2007 à 18:17:04  profilanswer
 

Shinuza a écrit :

Le téléchargement de la page sature ma bp [:petrus75]


6,7 Mo la page... vraiment n'importe quoi ! peine de mort pour l'abruti qui a pondu ça [:kiki]
 
http://img413.imageshack.us/img413/2153/capture1xo6.png

n°1563680
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 22-05-2007 à 18:17:44  profilanswer
 

masklinn a écrit :

Au fait, iota_amoi c'est censé représenter quoi [:petrus dei]


Maitre Yoda qui vient vers toi ?

n°1563682
Master p
My new cock ring :D
Posté le 22-05-2007 à 18:18:15  profilanswer
 

masklinn a écrit :

Au fait, iota_amoi c'est censé représenter quoi [:petrus dei]


Aucune idée, il l'utilise pas (où j'ai peut-être déjà viré l'appel à cette fonction, ça m'a pas marqué plus que ça)


---------------
HAHAHA I M USING TEH INTERNET
n°1563683
0x90
Posté le 22-05-2007 à 18:19:11  profilanswer
 

masklinn a écrit :

Sinon, il aurait aussi pu faire un array de strings avec chaque string à l'index correspondant à son contenu numérique (donc oui un array de 2100 chaînes pour les années :o)
 
Mieux, il aurait pu optimiser ça en créant un seul array global statique et en l'utilisant dans toutes les fonctions!


 
J'aurais plutot fait un index année->offset dans un string, avec un string de la forme:
 
"150015015152000...."
 
avec :
arr[1500]=0;
arr[1501]=4;
arr[1515]=7;
arr[1520]=9;
arr[2000]=11;


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°1563688
nraynaud
lol
Posté le 22-05-2007 à 18:29:40  profilanswer
 

Harkonnen a écrit :

6,7 Mo la page... vraiment n'importe quoi ! peine de mort pour l'abruti qui a pondu ça [:kiki]
 
http://img413.imageshack.us/img413 [...] re1xo6.png


Code :
  1. /*
  2. * Copyright (c) 2005, 2006 IBM Corporation and others.
  3. * All rights reserved.   This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors:
  9. *   IBM - initial API and implementation
  10. *
  11. * $Id: UMLPackage.java,v 1.24 2006/05/16 15:07:25 khussey Exp $
  12. */
  13. package org.eclipse.uml2.uml;
  14. import org.eclipse.emf.ecore.EAttribute;
  15. import org.eclipse.emf.ecore.EClass;
  16. import org.eclipse.emf.ecore.EDataType;
  17. import org.eclipse.emf.ecore.EEnum;
  18. import org.eclipse.emf.ecore.EPackage;
  19. import org.eclipse.emf.ecore.EReference;
  20. import org.eclipse.emf.ecore.EcorePackage;
  21. /**
  22. * <!-- begin-user-doc -->
  23. * The <b>Package</b> for the model.
  24. * It contains accessors for the meta objects to represent
  25. * <ul>
  26. *   <li>each class,</li>
  27. *   <li>each feature of each class,</li>
  28. *   <li>each enum,</li>
  29. *   <li>and each data type</li>
  30. * </ul>
  31. * <!-- end-user-doc -->
  32. * @see org.eclipse.uml2.uml.UMLFactory
  33. * @model kind="package"
  34. * @generated
  35. */
  36. public interface UMLPackage
  37.  extends EPackage {
  38. /**
  39.  * The package name.
  40.  * <!-- begin-user-doc -->
  41.  * <!-- end-user-doc -->
  42.  * @generated
  43.  */
  44. String eNAME = "uml"; //$NON-NLS-1$
  45. /**
  46.  * The package namespace URI.
  47.  * <!-- begin-user-doc -->
  48.  * <!-- end-user-doc -->
  49.  * @generated
  50.  */
  51. String eNS_URI = "http://www.eclipse.org/uml2/2.0.0/UML"; //$NON-NLS-1$
  52. /**
  53.  * The package namespace name.
  54.  * <!-- begin-user-doc -->
  55.  * <!-- end-user-doc -->
  56.  * @generated
  57.  */
  58. String eNS_PREFIX = "uml"; //$NON-NLS-1$
  59. /**
  60.  * The singleton instance of the package.
  61.  * <!-- begin-user-doc -->
  62.  * <!-- end-user-doc -->
  63.  * @generated
  64.  */
  65. UMLPackage eINSTANCE = org.eclipse.uml2.uml.internal.impl.UMLPackageImpl
  66.  .init();
  67. /**
  68.  * The meta object id for the '{@link org.eclipse.uml2.uml.internal.impl.ElementImpl <em>Element</em>}' class.
  69.  * <!-- begin-user-doc -->
  70.  * <!-- end-user-doc -->
  71.  * @see org.eclipse.uml2.uml.internal.impl.ElementImpl
  72.  * @see org.eclipse.uml2.uml.internal.impl.UMLPackageImpl#getElement()
  73.  * @generated
  74.  */
  75. int ELEMENT = 1;
  76. /**
  77.  * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.
  78.  * <!-- begin-user-doc -->
  79.  * <!-- end-user-doc -->
  80.  * @generated
  81.  * @ordered
  82.  */
  83. int ELEMENT__EANNOTATIONS = EcorePackage.EMODEL_ELEMENT__EANNOTATIONS;


bon, chuis gentil je vous donne pas la suite ....


---------------
trainoo.com, c'est fini
n°1563689
masklinn
í dag viðrar vel til loftárása
Posté le 22-05-2007 à 18:34:45  profilanswer
 

http://www.flickr.com/groups/transparentscreens/pool/  
 
Ptin la bande de grands malades [:pingouino]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1563692
masklinn
í dag viðrar vel til loftárása
Posté le 22-05-2007 à 18:42:02  profilanswer
 

http://lolpresident.com/wp-content/uploads/2007/05/budget.jpg
 
[:rofl][:rofl][:rofl][:rofl][:rofl]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1563695
Loom the G​loom
Even coders get the blues...
Posté le 22-05-2007 à 18:51:50  profilanswer
 

[:rofl]


---------------
Music|Market|Feed|Loom|DVD
n°1563697
uriel
blood pt.2
Posté le 22-05-2007 à 19:03:27  profilanswer
 

Master p a écrit :

Et puis, ça l'empêche pas d'être compétent [:cerveau spamafote]


"you're fired"

Master p a écrit :

Mais je suis mort de rire en pensant au temps qu'il a passé à écrire ça [:rofl]


bof, un script perl et hop [:petrus75]


[:ddr555]

Message cité 1 fois
Message édité par uriel le 22-05-2007 à 19:03:38

---------------
IVG en france
n°1563699
masklinn
í dag viðrar vel til loftárása
Posté le 22-05-2007 à 19:05:16  profilanswer
 

uriel a écrit :

"you're fired"

 

bof, un script perl et hop [:petrus75]

 

[:ddr555]


Spécialement pour toi:

 
Spoiler :

http://www.re-discovery.org/per_table_lg.gif

 

[:roi]  [:roi]  [:roi]  [:roi]


Message édité par masklinn le 22-05-2007 à 19:05:35

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1563709
uriel
blood pt.2
Posté le 22-05-2007 à 19:32:15  profilanswer
 

je suis fan, si je fais un post doc je vais au texas, c'est pas le kansas mais ça pourrait me plaire de parler physique quantique là bas [:moule_bite]
 
http://img402.imageshack.us/img402/3630/christianprotestorsfi9.gif


---------------
IVG en france
n°1563713
el muchach​o
Comfortably Numb
Posté le 22-05-2007 à 19:45:04  profilanswer
 

http://www.youtube.com/watch?v=8riv2BtaTwk
Excellent :D


Message édité par el muchacho le 22-05-2007 à 19:51:47
n°1563714
masklinn
í dag viðrar vel til loftárása
Posté le 22-05-2007 à 19:45:04  profilanswer
 

uriel a écrit :

je suis fan, si je fais un post doc je vais au texas, c'est pas le kansas mais ça pourrait me plaire de parler physique quantique là bas [:moule_bite]
 
http://img402.imageshack.us/img402 [...] orsfi9.gif


Nan mais des américains, yen a des biens aussi, Richard Feynman par exemple :o

Spoiler :

ah merde, on me dit qu'il est mort il y a 20 ans :o


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  ..  11875  11876  11877  ..  26992  26993  26994  26995  26996  26997

Aller à :
Ajouter une réponse
 

Sujets relatifs
Plus de sujets relatifs à : [blabla@olympe] Le topic du modo, dieu de la fibre et du monde


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)