- #1
SNOOTCHIEBOOCHEE
- 145
- 0
Ok I am having trouble writing this program in C.
Basically what i have to write is a program that implements a cipher to a string of text.
So it will ask the user to imput a Numeric key (lets say for instance 4)
and a string of text (I.E ABCDEFG)
and the output will be
EFGHIJK
it has to do that for upper and lower case stuff, and leave numbers alone.
Now i have a general idea of how to do it. I am guessing you basically have to get the computer to recognize the ACSII code for each character, and develop a function that adds the numeric key value to each character. Problem is i have no clue how to do this.
Any ideas/help?
Basically what i have to write is a program that implements a cipher to a string of text.
So it will ask the user to imput a Numeric key (lets say for instance 4)
and a string of text (I.E ABCDEFG)
and the output will be
EFGHIJK
it has to do that for upper and lower case stuff, and leave numbers alone.
Now i have a general idea of how to do it. I am guessing you basically have to get the computer to recognize the ACSII code for each character, and develop a function that adds the numeric key value to each character. Problem is i have no clue how to do this.
Any ideas/help?