[Site Home] [Forum Home] [Articles] [File DB] [News Archives]

Programming -> Changing letters help ASAP!


(View original topic)


Red Squirrel - Feb-02-2004 server time
I don't know turing, but I assume this is based on the ascii table, so it should be +1 for all characters, and +32 to make it capital (or I think it's -32, forget if the caps come first or not)

So the string ABCDEF would be turned to BCDEFG if you do +1.

chibitenshi_03 - Feb-01-2004 server time
i need to make a program that when the user enters a it turns into b and so on. i know the code is chr(ord("a")+1) to change from a to b but what do i do for all the alphabets?
I have this so far:

var letter : string

loop
put "Enter the code:" ..
get letter
if letter = "a" then
put chr (ord ("a") + 1)
end if
end loop

(Showing 50 last posts, newest on top)