Re: Reverse word order to read it from right to left
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Tue, 02 Oct 2007 19:33:50 -0400
osmium wrote:
"lovecreatesbea...@xxxxxxxxx" wrote:
I want to write a function to reverse the order of words to make
it read from right to left, but it doesn't work. Can you help me
and point out my mistakes. Thank you for your time.
<snip>
You forgot to explain the theory of operation. Should it work on
n words of just two words? Do the words have to be the same size?
You seem to have a fondness for switch statements that don't seem
necessary. Some compilers may accept the definition you have for
the array, a. They don't have to.
The OP could take a look at freverse.c, a test program for the
ggets general purpose string input routine. See ggets.zip at:
<http://cbfalconer.home.att.net/download/>
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
--
Posted via a free Usenet account from http://www.teranews.com
.
- References:
- Reverse word order to read it from right to left
- From: lovecreatesbea...@xxxxxxxxx
- Reverse word order to read it from right to left
- Prev by Date: Re: User Input issue
- Next by Date: Re: forward declaration
- Previous by thread: Re: Reverse word order to read it from right to left
- Next by thread: Re: Reverse word order to read it from right to left
- Index(es):
Relevant Pages
|