Push each word into the stack and pop it out at the end of the line.
Sent from BlackBerry® on Airtel

-----Original Message-----
From: Saurabh <saurabh24...@gmail.com>
Sender: algogeeks@googlegroups.com
Date: Thu, 21 Jul 2011 17:15:29 
To: <algogeeks@googlegroups.com>
Reply-To: algogeeks@googlegroups.com
Subject: [algogeeks] reverse a line.

what is the best way to reverse a line word by word in c or c++???


ex - my name is john
Then after reversing it will be like - john is name my







Regards
Saurabh

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to