how would i use an array of objects and get two sets of info on a specific index number

so i could use a for loop to initialize and maybe get the "name" string of the object with say the highest value...i cant find a simple tutorial anywhere

ive seen this

class cars
public:

int value
string name


rah rah rah

then i have seen these

car car2 [5]

so thats an array of car2s? or is there automatically 5 objects but all with the same name (but different thanks to the index number?)

im trying to create a program that will give me the name of the object with the highest value lowest and maybe show a table...ive been trying to work it out myself so i canlearn code better but ive been trying long enough to ak for more help

This site's tutorial?
Topic archived. No new replies allowed.