Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic Strings in Beginning C

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
We have been asked to make a currency conversion program using a string array. I don't know how to define an array for up to 5 currencies. Any help would be appreciated.
 
You are probably looking for an array of conversion factors.
Something like:

float DollarData[] = { .67, .34, 1.21, .86 };

Then all you gotta do is pick your conversion factor from the above array and multiply or divide as neccessary...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top