When are you going to post some code you wrote? That is the code someone wrote for you in another thread.

You seem to think you can con people into writing your whole program for you.

12-10-2005

gtr_s15

thank you for helping but i have one error that makes me really headache...

the problem is

i want to change each number in string to character that i had assigned as char something[]="ABCDEFGHIJKLMNOPQRSTUVWXYZ";.
for people who dont understand what i mean, here is an example,

array[0]=44, array[1]=11, array[2]=00, array[3]=13, so this is the fomula tat i want to use :
output for 44 is (44-26)+65 = 83, for character 83 = s, for 11 is 11+65 = 76 is character L, 00 is A because 00+65, and the last is 13 + 65 = 78 which is N.

Post your code. What have you got so far? What are your specific questions about some code you wrote in an attempt to solve your problem?

12-10-2005

gtr_s15

thank you for your concern....

12-10-2005

jlf029

what does this have to do with the function ifEven?

12-10-2005

gtr_s15

well for my program, i need to split those integer into two each, tats mean 44 11 00 44, there are four size. so if it is odd, we add '0' at the back of it to make it two integer and convert it to char.
hope you undestand.

12-10-2005

pianorain

Why don't you write an Encode and a Decode function instead of trying to encode the string by hand? Writing the Encode function should make the issues much clearer.