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