| Author |
Message |
Budmaster11
Joined: 11 Feb 2007 Posts: 2 Location: Right here.. don't you see?
|
Posted: February 19, 2007 2:33 AM Post subject: Variables and Letters |
|
|
Well first let me explain what I am trying to do as it may help- I am trying to make a program that you can enter text into then it converts those letters into numbers then puts them through a formula then converts the numbers back to letters and displays them, then of course I will also have it do the reverse so that you can unscramble it. Basically in case you havn't figured it out, I am making a code creating program thing...
The problem I am having is converting the letters into numbers. I am just trying to do one letter at a time, but I don't know how to make it read the letter as a letter not a variable. This is basically what I have.
Input "Enter letter",a
If a=a
1->a
If a=b
2->a
...
Disp a
pause
But of course it always displays 1. Because it sees that variable "A"= variable "a". Where I need it to thing Variable Letter "A"= Letter "A" or something like that.
Any help is appreciated, and any help on making it proccess an antire work/phrase/sentence at once would be very helpful. _________________ I really should get a cool signiture... |
|
| Back to top |
|
 |
mark
Joined: 24 Feb 2007 Posts: 27
|
|
| Back to top |
|
 |
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|
Saphic 1.5 // Theme created by Sopel
|
|