Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   How can done this program? (http://www.go4expert.com/forums/program-t3709/)

kunalkunal 1Apr2007 18:48

How can done this program?
 
i am new in programming language, i am unable to done it programm
can you done it?
program to transform its input according to a specified transformation scheme. The transformation scheme will consist of two strings: a string of characters and then a string of replacement characters. The idea is that your program replaces every instance of the ith character in the initial string with the (i+3) character (of English alphabets) in the replacement string. When no substitution is defined for a character, the program just passes it through to the output unchanged. The program should inform the user of any errors in the transformation scheme. Your program should display the phrase before and after the substitutions have been made.
Example:
Original String: This is a C program.
String after the transformation: Wklv lv d F Surjudp.

adroit89 4Apr2007 10:03

Re: How can done this program?
 
hey, just read the string character by character and while printing it again just increment the integer value of each character by two.


All times are GMT +5.5. The time now is 08:24.