backwards

can this be altered to display a word backwards?
if so how?


1
2
3
for (char word = 0; word < 50; word +=1)
		cout<< word << endl;
That won't display a word, just Ascii characters from 0 to 49.
right ... so can it be altered to display a word backwards?
if so how?
I mean no offense, but this should be in the Beginners forum.

Unless you change that loop completely, it can't be "altered" to display a word backwards, because, as it is, it won't display a word, as I said. Can you write a loop that will display a word stored in a char array?
Topic archived. No new replies allowed.