I need to read in numbers from a .txt file and sort the numbers to find the 3 highest and i can not figure out how to accomplish this. I'm so lost i dont even know where to start. :(
Nakeo
0
Newbie Poster
Recommended Answers
Jump to PostHow about start with reading the file?
Are you allowed to use vectors?When you post some code (using code-tags), we'll help more. But no effort == no help.
Jump to PostWhere's the rest of the code?
[edit]
Also post a few lines from your textfile.
All 6 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
Nakeo
0
Newbie Poster
Nakeo
0
Newbie Poster
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
Nakeo
0
Newbie Poster
Nakeo
0
Newbie Poster
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.