Print words to uppercase and reverse alphabetical order

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Mar 2008
Posts: 365
Reputation: NinjaLink is an unknown quantity at this point 
Solved Threads: 0
NinjaLink NinjaLink is offline Offline
Posting Whiz

Print words to uppercase and reverse alphabetical order

 
-1
  #1
Sep 2nd, 2009
Thank you for your reply. Problem solved!
Last edited by NinjaLink; Sep 2nd, 2009 at 1:51 pm. Reason: Solved problem
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 675
Reputation: Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold 
Solved Threads: 99
Sky Diploma's Avatar
Sky Diploma Sky Diploma is offline Offline
Practically a Master Poster

Re: Print words to uppercase and reverse alphabetical order

 
0
  #2
Sep 2nd, 2009
The function toupper takes a character argument and returns a character. so you cant assign a string and expect to get back the string itself.

You will have to replace every letter in the string with its equivallent.Upper case character.
1. Please Mark Your Thread as Solved After Getting Your Answers.
2. Please Use CODE TAGS .
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1
Reputation: tiluyomade is an unknown quantity at this point 
Solved Threads: 0
tiluyomade tiluyomade is offline Offline
Newbie Poster

Re: Print words to uppercase and reverse alphabetical order

 
0
  #3
Sep 2nd, 2009
Kindly work me thru how to write a program that prompts the user to enter three strings and does the following:

a. Output the strings in uppercase

b. Give the string length for each word

c. Of the three strings, determine the word that would be last alphabetically

d. Of the the three strings determine the word that would be first
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC