I'm doing a function which get an pointer to char and return a pointer to char...it's supposed to get lower case letters and return upper case letters, I have done this at this moment...If I did'nt have to do it through arrays and pointer I can do it easily just adding the difference between lowcase and upper case...but something is going bad through my pointer...
Thanks, that's true...now I'm doing a rotation13...I mean if I get a letter I must send the same letters plus 13 position more in the alphabet...but of course if it get further than Z it must start from A...I have done this at the moment..I'm getting strange simbols...I think it's because the if sentece is altering the result..
I have optimized those things....and I have change the input in char array and I have written a sentence with spaces, on the place where a space is, it is giving me this symbol _ it matches with 45 number in ASCII code and space is 32 so it's working fine 13 + 32 = 45....but I see what you mean....the target would be skip white space...I guess I could fix that including other if statement...but maybe there are functions to get an string and skip the white space but I don't know the result( i guess without doing any more change I could get the sentence rotate 13 position in ASCII code but without space).....I have done this if you can provide a better version I would really appreciate since I haven't got use to work with string...
I have done those things and they work almost all right...I have done two sections to analysis...one with lowercase letters and one with uppercase letters.. with uppercase it's working fine but with lowercase I'm getting an odd...with letter y I'm getting L while with letter Y I'm getting F...I think is odd since both string use the same rotate13 function.... and I would like to use the same char array than create another one...I have tried to use it again but I just get errors...I guess I will have to place the information through a pointer but I'm not sure...
And I have used strcpy to changed to cointained of the string but I would like to do that without including cstrig....is that possible?? I guess with pointers but I'm not sure...
I was thinking that the trouble was on the lowercase, I mean when it was getting the letter from a lowercase...but that's true..the uppercase was resulting a lowercase (f) and becoming again in uppercase, so it was smaller than 'z'...great!!!!, but that leads me to other questions then...It's regarding to my last code( with your change it doesn't happen) when we plus 13 to y there is an overload in the ASCII code( at least I think it like that), so the result value would be smaller than Z so it would apply y +13 that is...End of transmission in ASCII....obviously it can't do an overload..it must be adding the ASCII code of y plus 13 and it gets an int which is bigger than the int correspondent to 'Z' , but I would like a confirmation because I have been thinking a bit about that...thanks!!
Sorry, I don't get what you mean...I think you mean that char is converted to a int a later it's added to 13 so I have a number bigger than the z equivalent...is that right??