I am a beginner currently working on an assignment that has C++ open a text file containing data such as :
[253, 676, 114]
[527, 160, 277]
[364, 193, 169]
[246, 651, 378]
[536, 479, 695]
[569, 548, 83]
[117, 387, 543]
[294, 753, 702]
[651, 296, 284]
[600, 498, 114]
[201, 260, 629]
[686, 473, 375]
[234, 727, 89]
[447, 83, 730]
[521, 591, 300]
[279, 405, 227]
[686, 101, 448]
[559, 602, 283]
[75, 137, 170]
[430, 136, 527]
[111, 259, 219]
[280, 217, 707]
[433, 437, 194]
[165, 359, 643]
[398, 463, 614]
I am responsible for creating a program that will find the max and min of the data set provided.
I am having a really hard time finding a max and min since C++ is reading the square brackets and commas as integers. I have tried to approach it a few ways and can't seem to get the right answer. Can anyone can please help or set me in the right direction on how to approach this?