Top.Mail.Ru
The C++ Community's Journal -- Day
? ?
The C++ Community's Journal -- Day [entries|friends|calendar]
The C++ Community

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

Im in dire need of help with my C++ [21 Sep 2003|03:24pm]
i've got a few problems to figure out that are killing my head :\ i could use any help anyone is willing to offer.

1) Write a program that prompts the user to input three intergers. The program should then output the numbers in acending order.

-I've been trying and trying, the only things i can think of with this one is something to do with # include <string.h, and the strcmp function. -I've figured out how to sort two names in order but i can't figure out how to sort three numbers.:o 2) Write a program that mimics a four-function calculator. The program should take as input two intergers and the operation to be performed. It should then display the numbers, operator and the results. For example 3 + 4 = 7, 5 * 6 = 30 With this one i can't figure out how to include the operators ( +, -, *, /) I feel so degraded, i hate when you can't figure things out :o errr Any help would be greatly appreciated i would be forever in your debt, i really want to pass the class :\ - newbie
4 comments|post comment

navigation
[ viewing | September 21st, 2003 ]
[ go | previous day|next day ]
Image