dimanche 28 mai 2017

can a c++ function receive an unknown multiple of a class as param?

Is there a way in c++ to pass a function an unknown number of class objects (at least one or more) similar to java's method(Object... o){ /*do stuff*/}?

I've looked online and haven't found any relevant information. I think google isn't registering the three dots after object. Google Search

Thanks!

Aucun commentaire:

Enregistrer un commentaire