LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   string to ASCII and back... (https://www.linuxquestions.org/questions/programming-9/string-to-ascii-and-back-119323/)

skora 11-23-2003 08:12 PM

string to ASCII and back...
 
Hi!
i have to write a program that will ask user to enter an unsigned integer and any string and then my program has to output new string which is the old string transfered into ASCII + unsigned integer so for example if I enter 3 and "abc" output should be "def"
('a' shifted to 'd', 'b' to 'e', and 'c' to 'f')

thanks
:scratch:

moeminhtun 11-23-2003 08:42 PM

In what language?
I think it's your homework. It's a simple program. First you should try yourself as much as you can at least a line or two. Then if you come across any problem, post your codes here and we'll help you. This forum is not allowed to help students who is posting the whole question without showing any efford.
Good luck

Kumar 11-24-2003 04:05 AM

Rightly said. First try for yourself and then if you have any difficulty, post here and everyone around will be willing to help. Do remember to send the language too.

:study:


All times are GMT -5. The time now is 03:37 AM.