LaurentDelaon
Member
Hi
sort presentation :
and try to this in loop:
Compile but seemnot afect values to vector m_A
Another way :
works fine but not convenient because definition is hard coded the class can only have an only one instantiation/definition.
How can do to do it out of class definition?
Thank's Laurent.
sort presentation :
Code:
class a_classe {
std::vector<double> m_A
}
Code:
...
a_classe the_class
...
the_class.m_A= {1,2};
Compile but seemnot afect values to vector m_A
Another way :
Code:
class a_classe {
std::vector<double> m_A
void afunction(){
the_class.m_A= {1,2};
}
}
works fine but not convenient because definition is hard coded the class can only have an only one instantiation/definition.
How can do to do it out of class definition?
Thank's Laurent.