Ptite aide

Ptite aide - HTML/CSS - Programmation

Marsh Posté le 28-03-2006 à 20:09:46    

:hello:  
 
Juste vous pouvez me dire le pass et m'expliquer la fonction string:

 

 

Code :
  1. question=prompt("Quel est le mot de pass ?" )
  2. chaine="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
  3. nb=chaine.length
  4. rst=nb.toString(2)
  5. if ( question == rst )


 
 
Merci :)

 


---------------
\\\"Dès le matin je trempe mon join dans le chocolat au lait\\\" (Sinik)
Reply

Marsh Posté le 28-03-2006 à 20:09:46   

Reply

Marsh Posté le 28-03-2006 à 20:15:54    

:bounce:


---------------
\\\"Dès le matin je trempe mon join dans le chocolat au lait\\\" (Sinik)
Reply

Marsh Posté le 28-03-2006 à 20:18:10    

:bounce:


---------------
\\\"Dès le matin je trempe mon join dans le chocolat au lait\\\" (Sinik)
Reply

Marsh Posté le 28-03-2006 à 20:21:55    

EUH y a personne qui sait?


---------------
\\\"Dès le matin je trempe mon join dans le chocolat au lait\\\" (Sinik)
Reply

Marsh Posté le 28-03-2006 à 20:28:38    

SVP  :??:  :??:


---------------
\\\"Dès le matin je trempe mon join dans le chocolat au lait\\\" (Sinik)
Reply

Marsh Posté le 28-03-2006 à 20:42:47    

Tu as fini de spammer  :fou: Si tu es pressé
 
 [:alkatraz]  [:ark]

Reply

Marsh Posté le 28-03-2006 à 20:46:21    

Sorry pour le spam. Mais j'ai deja rechercher dans google et j'ai fait recherché mais j'ai pô trouv.


---------------
\\\"Dès le matin je trempe mon join dans le chocolat au lait\\\" (Sinik)
Reply

Marsh Posté le 28-03-2006 à 20:55:21    

>    rst=nb.toString(2)
convertir la longueur ``nb`` en base 2....

Reply

Marsh Posté le 28-03-2006 à 20:57:22    

Euh... Désolé jsuis vraiment un gros nOOb tu peux m'expliquer STP ^^


---------------
\\\"Dès le matin je trempe mon join dans le chocolat au lait\\\" (Sinik)
Reply

Marsh Posté le 28-03-2006 à 21:29:38    

Attend si tu comprend pas ce qu'il te dis on peux rien pour toi:
 
Bon je décode:
 
Nous humain on compte en base 10 : 0,1,2,3,4,5,6,7,8,9
 
Mais une machine en base 2: 0,1
 
Voilà, donc ça encore encode ton truc...


Message édité par xtof_83 le 28-03-2006 à 21:34:38
Reply

Marsh Posté le 28-03-2006 à 21:29:38   

Reply

Marsh Posté le 28-03-2006 à 21:31:51    

C'est du binaire, non?


---------------
\\\"Dès le matin je trempe mon join dans le chocolat au lait\\\" (Sinik)
Reply

Marsh Posté le 28-03-2006 à 21:37:56    

antitrust5 a écrit :

C'est du binaire, non?


 [:jean-guitou]  ................  [:runje le mur]

Reply

Marsh Posté le 28-03-2006 à 21:39:12    

Merci, merci :p


---------------
\\\"Dès le matin je trempe mon join dans le chocolat au lait\\\" (Sinik)
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed