i want to input 2 data into an array, then compare it.
however, do user input the data will be minutes and seconds
example : 5 minutes 30.4 seconds and 6 minutes 40.5 seconds
cin >> minutes, second
can i compare these two data without adding the minutes and seconds together?
can i store minutes and seconds into one array data space?

Of course, you can compare minutes and seconds but it's senseless operation.
For examples, you have 10 dollars and I have 11 cents. Let's compare our capitals...
OK, 11 > 10 - I'm so reach, poor chern4ever...
You can properly compare values of 60.0*minutes + seconds .