Thread
:
Help with Measurement converter
View Single Post
•
•
Join Date: Nov 2008
Posts: 397
Reputation:
Solved Threads: 72
StuXYZ
Online
Posting Whiz
Re: Help with Measurement converter
0
#
3
Nov 25th, 2008
The mistake is that you are using integers (the set 0,1,2,3 and -1 etc)
to represent floating point number.
int a=2*1.2;
gives sets a to 2.
write
Help with Code Tags
c++ Syntax
(
Toggle Plain Text
)
double
Meters;
double
Yards;
double Meters; double Yards;
instead of the two int declarations.
StuXYZ
View Public Profile
Find all posts by StuXYZ