@AbstractionAnon imagine I want to open one text file named mesh and obtain the size of connectivities, how it gonna be?
For example I can say something like this?
Mesh Global_Mesh(const std::string filename)
Global_Mesh.connectivities_.size()? I have one error in compiling here.
// declare function that takes string parameter and returns a Mesh:
Mesh Global_Mesh(const std::string filename);
cout << Global_Mesh.connectivities_.size(); // error, Global_Mesh is name of a function
No. If you have line: Mesh Global_Mesh( const std::string filename );
Then you do have a function declaration.
If you want to declare a variable 'Global_Mesh' and initialize it with value of existing variable 'filename', then you should have: Mesh Global_Mesh( filename );
@resabzr Why have you deleted the code from your earlier posts? Please don't do that - it makes the thread incomprehensible for those looking to learn from it.