Click on the following link to download the example: ConsoleApp.zip
Click: browse to view the example code.
ConsoleApp is a simple console-based STDLIB program. It converts quantities from one unit of measurement into another. The user is prompted for input. Conversion information is provided by the file slunits.dat.
Enter the type of unit you want to convert from, and then the type of unit you want to convert to. For example, to convert from inches to centimetres, enter "in", then "cm". The program replies with the ratio of inches to centimetres, and of centimetres to inches.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.