![]() |
|
#1
|
||||
|
||||
Need help in reversing the alphabetshow to reverse alpahbets by simple using loops need code of it i mean if i enter khushal the output will be lahsuhk.
please help me by using the code insted of theoratical explanation i can reverse a number but alphabets can't be reversed and the code for reversing numbers is given in my code try using this approach to explain my question CPP / C++ / C Code:
|
||||
|
#2
|
|||
|
|||
Re: need help in reversing the alphabets...?I don't really understand what you're doing in your example but here is how I would do it:
1) Read the input into a string variable 2) Send that string into a function like: string ReverseString( const string& s ) 3) Output the new string As for the function, here is how I would create it: CPP / C++ / C Code:
|
|
#3
|
||||
|
||||
Re: need help in reversing the alphabets...?i need simple reversing not to use the const etc simple as i reversed it in an example of reversing the numbers.i want to reverse a letter such as if i enter "khushal" the output will be "lahsuhk"
|
|
#4
|
|||
|
|||
Re: need help in reversing the alphabets...?Quote:
|
|
#5
|
||||
|
||||
Re: need help in reversing the alphabets...?sorry for disturbing u again and again i just need the complete code that where the function is used initialization etc....please send me the complete program i really dont understand u.Will be thankful to YOu
|
|
#6
|
|||
|
|||
Re: need help in reversing the alphabets...?Quote:
|
|
#7
|
||||
|
||||
Re: need help in reversing the alphabets...?sorry cant do this cauz im a bachloer student noe and dont have enough funds to pay even a dollar...sorry buddy if u can help me weelll in good other wise thank you for ur replies byeee
|
|
#8
|
||||
|
||||
Re: need help in reversing the alphabets...?it is obvious you didn't read the guidelines which explains how to ask a question we do not do homework for you you have to do the home work and we will help you correct it but we won't write it for you you don't learn if we do it for you and another thing work harder at making your posts readable in english there are things called sentences and they end in a period so we know when the end of of a sentence is reached.
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#9
|
||||
|
||||
Re: need help in reversing the alphabets...?Quote:
...close. I think that you'd want to post-decrement i rather than pre-increment it. CPP / C++ / C Code:
Output: Code:
|
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help reversing an entered String with recursion | skis0601 | C++ Forum | 5 | 03-Dec-2007 19:41 |
| Printing alphabets and numbers bold | parthu | Java Forum | 1 | 09-Nov-2007 18:45 |
| Making non-English alphabets work | Kimmo | C++ Forum | 0 | 17-May-2007 06:06 |
| Reversing Output, Pascals triangle | worms707 | C++ Forum | 1 | 07-Feb-2006 18:55 |
| Need help with reversing strings | Infuriate | C Programming Language | 13 | 01-Dec-2005 19:27 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The