Home Contents Related links Contact me
Go Home!


Click to buy this book The C++ Programming Language Special Edition




 
<a href="https://www.bigprof.com/appgini"><IMG border="0" SRC="appgini.gif" WIDTH=468 HEIGHT=60 usemap="#appgini" BORDER=0></a>

Dealing with tables-part 1

The program below is your first step into dealing with tables. Suppose that you have the table below, which shows the various diameters of a rod of material X and the load carrying capacity corresponding to each diameter.

Diameter
(mm)
10121518202225
Max. load
(Kg)
420540658860105012301400

Now, our C program recalls data from this table. The data in the table will be stored in arrays. The user can enter a diameter value and request a load value, or a load value to get a suitable diameter value. To download the source file, simply click here.



Copyright © 1999-2003 BigProf.com. All rights reserved.