Permalink
Browse files

Update PSE Ex 4.3 for int and double overloads

  • Loading branch information...
1 parent 21c262b commit 6065a87cf026b19186e01a7f21ebff4c9b7c27a5 @dharmatech committed Feb 3, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 PSE Example 4.3 The Long-Jump/Program.cs
@@ -76,9 +76,9 @@ static void Main(string[] args)
Console.WriteLine(
objC.position.x
.Substitute(thA, Trig.ToRadians(20))
- .Substitute(g, new DoubleFloat(9.8))
- .Substitute(Trig.Pi, new DoubleFloat(3.14159))
- .Substitute(vA, new Integer(11))
+ .Substitute(g, 9.8)
+ .Substitute(Trig.Pi, 3.14159)
+ .Substitute(vA, 11)
);
Console.WriteLine();
@@ -87,10 +87,10 @@ static void Main(string[] args)
Console.WriteLine(
objB.position.y
- .Substitute(g, new DoubleFloat(9.8))
+ .Substitute(g, 9.8)
.Substitute(thA, Trig.ToRadians(20))
- .Substitute(Trig.Pi, new DoubleFloat(3.14159))
- .Substitute(vA, new Integer(11))
+ .Substitute(Trig.Pi, 3.14159)
+ .Substitute(vA, 11)
);
Console.ReadLine();

0 comments on commit 6065a87

Please sign in to comment.