ConsoleApp: Simple Console Program

Download

Click on the following link to download the example: ConsoleApp.zip

Click: browse to view the example code.

Description

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.

Usage

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.