I'm using a float in several places to represent speed. Now I'd like to do somthing like:
SpeedType currentSpeed = 0;
float currentSpeed = 0;
since I'm defining different speeds throughout my program. If I need to use int or doulble for speed instead I don't want to have to find all speed defintions and redefine them. Instead I'd like to change the definition of my SpeedType in one place.
How do I define my SpeedType as <someSimpleType>?
This post has been edited by jens: 14 December 2010 - 03:10 AM