Hi,
Thank you very much
LB and
Isplil :)
LB
LB wrote: |
---|
I thought you said your background was in C? This is the kind of thing a Java developer would say. The main function is not associated with any class, it is in the global scope. |
In C++, all function are associated with Classes, aren't they?
Also the main function.
LB wrote: |
---|
Inheritance is not suited to every problem in existence. Your problem might be better solved without it (though it is still easier to use C++ than C in many cases). You have not given sufficient information for us to help you make that decision. |
Oh Please let me detail on the Tool I need to build.
In our project, the Functions and Variables are mapped to different Memory Banks.
After each linkage, we get an output file which shows which functions / data are located at each Memory Bank, and how full that Memory Bank is.
When a certain Memory Bank gets full, I'd like the script to edit the source files of the project, in order to take some functions / variables from the fully occupied Memory Bank and transfer them to less Occupied Memory Bank.
For that, the Script will firstly have to go over the linkage output file, and then go edit the relevant source file.
I'd really like to embed OO in this tool (and inheritance), to enhance my C++ capabilities.
But, since I'm not experienced in OO programming, I'd love to have a starting point and general view point from an experienced C++ programmer.