### Is this the same? (vectors notation)

Is the same to write:

(1) mesh electrodeMesh(10e-9,4,10);

than to write:

(2) mesh electrodemesh = {10e-9,4,10):

I understand that BOTH (1) and (2) are vectors, right? You can initialize a variable doing, for example:

int number=10; and int number(10)

Is this the same?
What is mesh? We can't answer without knowing that.

Last edited on
@L B mesh is a class (sorrty for responding so late but I'm learning c++ and wanted to know more before responding again..!)

I've understood that mesh electrodeMesh(10e-9,4,10); is the same than mesh electrodeMesh={10e-9,4,10};

Now my doubt is, how can you use different constructors? The program knows which one to use because of the number and types of parameters used? (I say this because I suppose that mesh electrodeMesh(10e-9,4,10); refers to the 4th constructor.

 ``123456789101112131415161718192021`` ``````class mesh { public: //! Constructor /*! * Default constructor for mesh. * @param nNodes[] is a vector with the number of nodes in the x, y, or z direction. */ mesh(); mesh(vector& nNodes, unsigned int nNeighbours, const vector &dimensions); mesh(unsigned int nx); mesh(double length, unsigned int nDecades, unsigned int pointsPerDecade); mesh(double length, unsigned int nx); mesh(double lenght, vector xpos); //!Destructor ~mesh(); //!Copy constructor mesh(const mesh & _mesh); [...]``````