how to make a program that will reverse the inputed data in output??? ex. the inputed data is blue the output should be eulb
Reversing String Data
Collapse
X
-
-
Originally posted by CPLUSPLUSPlease try the following program
<code deleted>
Hope this helps you.
Please before do post read the Post Guide Lines at the right side top-edge.
You can also doing using Standard API most probably strrev instead of writing your own Code.
It is better to write your own API.
But sometimes the time is main factor in Software Development.
Kind regards,
Dmjpro.Comment
-
nholdzkie
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.
Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.
Then when you are ready post a new question in this thread.
Banfa
AdministratorComment
-
Originally posted by nholdzkieso far this is my code... can you help me??
cout<<"enter word: ";
cin>>word;
cout<<word;Comment
-
I just made this algorithm
1. input a character string call it word
2. set the first character of string as index 0,
3. set the second character as index 1
and third is index 2 and so on until the last character of the string call it index n.
4. then display the character string from index n until index 0
I think we should use for loop for this code which is impossible for me to code without using function.Comment
Comment