Desolate Carnage
 
Question
Archived | Views: 1026 | Replies: 12 | Started 15 years, 4 months ago
 
#561456 | Sun - Jun 21 2009 - 18:47:18
Group: Guest
Posts: 5,799
Joined: May 26 2008
Contact: Offline PM
Points: 109.60
anyone of you know c++ ?
 
#561459 | Sun - Jun 21 2009 - 19:03:43
Group: Members
Posts: 11,32610k
Joined: Sep 1 2006
Contact: Offline PM
Points: 2,118.11 $
no
 
#561464 | Sun - Jun 21 2009 - 19:18:55
Group: Members
Posts: 7,812
Joined: Feb 24 2008
Contact: Offline PM
Points: 2,703.25
Quote (bubbachunk @ Sun - Jun 21 2009 - 19:03:43)
no


 
#561467 | Sun - Jun 21 2009 - 19:33:48
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
yes
afk
 
#561474 | Sun - Jun 21 2009 - 20:37:00
Group: Members
Posts: 74,19840k
Joined: Oct 25 2006
Contact: Offline PM
Points: 6,883.75 $ $
Quote (randomtask @ Sun - Jun 21 2009 - 17:33:48)
yes
afk


fag
 
#561476 | Sun - Jun 21 2009 - 20:47:08
Group: Guest
Posts: 18,48810k
Joined: Sep 1 2006
Contact: Offline PM
Points: 6,611.60
Quote (BBQ @ Sun - Jun 21 2009 - 19:18:55)
Quote (bubbachunk @ Sun - Jun 21 2009 - 19:03:43)
no


 
#561477 | Sun - Jun 21 2009 - 20:48:43
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
wuw
 
#561483 | Sun - Jun 21 2009 - 21:23:29
Group: Members
Posts: 47,60340k
Joined: Sep 1 2006
Contact: Offline PM
Points: 44,538.17
Quote (Du$tin @ Sun - Jun 21 2009 - 21:47:08)
Quote (BBQ @ Sun - Jun 21 2009 - 19:18:55)
Quote (bubbachunk @ Sun - Jun 21 2009 - 19:03:43)
no


 
#561484 | Sun - Jun 21 2009 - 21:27:04
Group: Guest
Posts: 5,799
Joined: May 26 2008
Contact: Offline PM
Points: 109.60
forgot how to use char variables

what i need to do is
user is entering either c, C, f, F
need to make char variables for each and do a conversion depending on what they type in

so like
if they enter c or C have to do 1 thing
then f and F is another


i just dont remember what to type to make it a char variable

here's the actual problem

Write a C++ program that prompts the user to specify if they want to convert from Celsius to Fahrenheit, or Fahrenheit to Celsius. Use a char type variable for this input, and ask the user to enter a C or an F. Your program should handle input of upper or lower case characters. If the user enters anything other than C© or F(f), display the message "Invalid Entry" and end the program using an exit(0) statement.
 
#561487 | Sun - Jun 21 2009 - 21:31:14
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
you have to check for the specific ascii value for the character
 
#561488 | Sun - Jun 21 2009 - 21:31:20
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
iirc
 
#561557 | Mon - Jun 22 2009 - 04:35:16
Group: Members
Posts: 30,24630k
Joined: Oct 5 2007
Contact: Offline PM
Points: 3,287.80 $ $
Quote (smoked @ Mon - Jun 22 2009 - 03:23:29)
Quote (Du$tin @ Sun - Jun 21 2009 - 21:47:08)
Quote (BBQ @ Sun - Jun 21 2009 - 19:18:55)
Quote (bubbachunk @ Sun - Jun 21 2009 - 19:03:43)
no


 
#561567 | Mon - Jun 22 2009 - 05:24:27
Group: Guest
Posts: 11,85110k
Joined: Feb 2 2009
Contact: Offline PM
Points: 3,248.50
Quote (Vogan @ Mon - Jun 22 2009 - 12:35:16)
Quote (smoked @ Mon - Jun 22 2009 - 03:23:29)
Quote (Du$tin @ Sun - Jun 21 2009 - 21:47:08)
Quote (BBQ @ Sun - Jun 21 2009 - 19:18:55)
Quote (bubbachunk @ Sun - Jun 21 2009 - 19:03:43)
no


Archived | Views: 1026 | Replies: 12 | General Archive - 2009 Topic List
 
Quit the Internet