dimanche 25 octobre 2020

What's the difference between push_back({ "George", 1 }) and push_back(Student("Jack", 10));

I was just wondering if there's a difference between the following two lines? Is one way more efficent than the other? Or does it just a different syntax that completes the same task? Sorry but I didn't know how else to phrase this question. I'm sure my question will be edited if not to your standard.

objStudents.push_back({ "George", 1 });
objStudents.push_back(Student("Jack", 10));

Aucun commentaire:

Enregistrer un commentaire