C
carlosp
I am starting with C++, coming from fortran90. I am learning classes,
and I want to start building a "real life" program. I need to
manipulate matrices, diagonalize etc, so I am making use of it++, and
I have a question coming from there, but completely independent of it.
Let say I have some header files defining some class, and its member
functions, I want to add a new member function _without_ changing the
code of the other files. I have tried various combinations without any
success Of course I could define a routine that does a similar job,
but I would like to call it in the
object.method()
style. Is there a way to do it??? I am sorry if this is to trivial, I
am stuck in here! I have been reading Stroustrup, and probably inside
it is the answer but it is too long and I want the answer soon!
Thanks a lot!
Carlos
and I want to start building a "real life" program. I need to
manipulate matrices, diagonalize etc, so I am making use of it++, and
I have a question coming from there, but completely independent of it.
Let say I have some header files defining some class, and its member
functions, I want to add a new member function _without_ changing the
code of the other files. I have tried various combinations without any
success Of course I could define a routine that does a similar job,
but I would like to call it in the
object.method()
style. Is there a way to do it??? I am sorry if this is to trivial, I
am stuck in here! I have been reading Stroustrup, and probably inside
it is the answer but it is too long and I want the answer soon!
Thanks a lot!
Carlos