I am not asking anyone to write my program for me. I want to get that out upfront. I just desperately need some pointers.
This is what I was assigned: "Read in a string of maximum 11
characters (including the \0 at the end) and whatever is typed in, reverse it using a function". But we cannot use outside functions, we have to code it out.
My pseudocode looks something like this:
1. Get word from end user
2. Use a function to find \0 & reverse the word into a new string
4. output reversed string
I am trying to use a FOR loop, but I cannot figure out how to tell it to start with \0 and then go backwards. I have tried using a counter, but I still haven't figured out how to tell it 'start with i being \0; end when i is 0; and decriment by 1'. I know that finding the \0 is the key.
This is the first programming class I have taken and until now I have grasped things fairly easily. Whether it is the concept, not being able to concentrate (anyone who's had a tooth cut out and reacted t the numbing meds and then the pain meds might be able to understand) or both, but I am very overwhelmed at the moment. I have tried google, but everything I find tends to use other libraries and functions that automatically reverse the string...but nothing that has helped me figure out how to do this. Can anyone help please?
Thanks
Heather