TECH Confused, assembly code hw

schafbo

New Member
Dec 27, 2004
5
Problem states:
Write a program that inputs any sentence from the user in the console (ending with a '.') Then reverse the words in the sentence, but not the characters in each word.

E.G.
The quick brown fox jumped over the lazy dog's back.

back. dog's lazy the over jumped fox brown quick The

Any tips on how to get started? Reversing the characters a string was fairly easy as you could just push each byte into a stack (as we did on a previous homework). I really have no idea where to go as far as word order.
 

skinjob

Active Member
Jan 6, 2001
2,243
Aztlán
Reversing the characters a string was fairly easy as you could just push each byte into a stack (as we did on a previous homework). I really have no idea where to go as far as word order.

You could do it the same way. Instead of individual characters, you'd put pointers to strings on the stack.
 

Users who are viewing this thread

About Us

  • Please do not post anything that violates any Local, State, Federal or International Laws. Your privacy is protected. You have the right to be forgotten. Site funded by advertising, link monetization and member support.
OT v15.8.1 Copyright © 2000-2022 Offtopic.com
Served by fu.offtopic.com

Online statistics

Members online
502
Guests online
79
Total visitors
581

Forum statistics

Threads
369,739
Messages
16,915,724
Members
86,875
Latest member
ddunn9448