Quote:
Originally Posted by
methyl
Can you provide sample input and sample output with an explanation of the process required to convert input to output? Then we can consider code for the conversion.
I can giv u logic.
we have only 1st chracter to control the flow,else we cant handle..
letc consider ascii values 1st
[A-Z]=[65-96]
[a-z]=[97-132]
and special characters like space=32 etc..
so if 1st character is 1 then we have to read 3 charaters continusly then assign this value to a valiable and print its decimal value
then read 4th character and check if its 1 again same logic,
in case its not one we have to read 2 characters and and print its decimal value..and so on till EOF
Did any one get any idea of my logic or correct me if any one has any thing else suggest?
--------------------------------------------------------------------------------
Methyl sample code for u..
a file contails a values (acsii) like this
65666768
I have to read the file and convert these values in its actual values
so out put of above should be
ABCD
exsample 2
729711810132973278105991013268971213233
Have a Nice Day!
Note: there may be special chacters too ,for e$xample "!" in upper example
If any one can giv me code for vice versa of it i.e. changing simple text of decimal to ascii, it wud be appreciated
eg:Have a Nice Day!
729711810132973278105991013268971213233