Welcome to the Daniweb.
Please use BB code tags while posting source program.
[code]
....
[/code]
Take a look at forum rules.
Use (cast) operator.
Console.WriteLine("High = {0} {1}", myDiff, (int)myDiff );
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
This is one of the reasons I like C# so much.
An enumeration in C# is what it says: an enumeration, not an integer.
But if you like you can still dig down below the surface.
Same holds for booleans in C++d you can say:
while(0)
{
// do something forever
}
This is not allowed in C#, you would have to use a boolean expression.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661