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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi there, i wonder if anyone can he

Status
Not open for further replies.

amandanelson

Programmer
Sep 30, 2002
2
GB
Hi there, i wonder if anyone can help me. I'm creating a hash table, and have all other functions working but can't tansfer the data from the file stock.txt to the table. I understand i have to read a line from the file, extract the chars eg 0-8 and convert them to integers, and the same for the rest of the entries before adding the record to the hash table but i can't quite figure out the code for this, i'm sure once i see it i'll understand. I would appreciate any help offered.

Thanks to anyone who can help

Amanda
 
My ignorance is showing. heard of hash tables but never used them.

Are you parsing a string for individual characters (1,2,3,4,5,6,7,8,0), converting these characters using "atoi ()" and putting the int values in another container. Is it the parsing of the strings or the file access that is giving you the hiccups.

tomcruz.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top