I think its the encryption logic fault. Since you are encrypting the whole string upto length (0 to len-1) therefore in effect you are also encrypting the null terminating character '/0'. Jst add '/0' after len amount of characters in the encoded out array and i think it will give the correct...
Maverick ur first code is quite a bit long don't u think?
Well i thought u might want to calculate e^x-1 coz the series is its expansion. and can u tell me if i can open an bmp image in c?
Since you are using getline everytime, so (*line) is checking the first character of the line array if its null or not(ascii 0).
*line is eqv to line[0];
*(line+1) is eqv to line[1];
......
get the point!!
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.