I have to write a program that reads in from a .txt file similar to
12345 Il 4350 (sales number, state abbreviation, amount)
for the most part I dont have an issue with this, however I have to read in the State abbreviation as separate characters and ultimately alphabetize them. I am having total brain block on how to read in the State Abbrev as separate characters.....any help would be appreciated
fugnut
0
Junior Poster in Training
Recommended Answers
Jump to Posttry declaring an empty STL style string. The concatenated each char to the end of the string. Store each string in an array and sort the array after input stops.
All 3 Replies
Lerner
582
Nearly a Posting Maven
VernonDozier
2,218
Posting Expert
Featured Poster
fugnut
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.