I am studying the code on this page http://www.simonsingh.net/The_Black_Chamber/vigenere_cracking_tool.h


What do the + signs here mean?

Code:
if(i<10)
layertext=layertext+'<td width="0%"><INPUT TYPE="button" NAME="b2" size="3" VALUE="'+0+i+'" onClick="highest('+i+')"></TD>';
else
layertext=layertext+'<td width="0%"><INPUT TYPE="button" NAME="b2" size="3" VALUE="'+i+'" onClick="highest('+i+')"></TD>';
}


If I remove them the textarea where the encrypted text is becomes blank and that 2nd table doesn't show up when I click "Find Repeated Sequences"
Concatenation.

(Also, "abusing" weak typing to have 0-padding in the first branch - this would have been better: VALUE="0'+i+'")
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement