A.Objective: To write a simple program that actually has some kind of worth using my limited knowledge of C++.
B.Program
Take a gander right here:
.h file
.cpp file
C. Update: Chatted with Prof Coyle and I think I figured out my problem, I was doing integer division, so it was messing up my answer.
So, I was very proud of myself for writing a program that worked, until I discovered a problem in it. I'm so annoyed, I thought it was working correctly until I tested it out again before posting. The point of the program is to convert temperatures from celsius to fahrenheit and vice-a-versa. Well the conversion from celsius (C)to fahrenheit(F) works, but the fahrenheit to celsius doesn't. The only one that work for F to C is when I put in 32F and get 0C. Everytime I enter a degree in F, I get 0 C as the answer. Can someone help me figure out the problem as I have triple checked my formula and made all the changes I could think of and I can't figure it out.
Subscribe to:
Post Comments (Atom)
1 comment:
"if (choice >=1 && choice <= 6)"
That just confuses me in all sorts of ways. ;)
Post a Comment