February 12th, 2013, 10:30 AM
Issue with bubble sorting vectors
I'm doing a project where I have to store information gathered (temperature and the time it was taken in seconds) in two seperate vectors. After an unknown amount of data has been enterd, and the end-of-file has been reached, I have to display the highest temperature and the time(s) it occured (bear in mind that the highest temperature may be recorded more than once). The output of that part should be as follows:
Highest temperature: 51
Recorded at time(s):
Something like that. The time should also be converted to hours and minutes. To the point: I've done some research on bubble sorting, but they only use it for arrays. I'd like to know if anyone can help me gain some insight on using bubble sort in this scenario. I've been struggling with this for quite some time now.
Click Here to Expand Forum to Full Width