No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
1th year Student @ University Babes-Bolyai, Computer Science
Hello, i have some problems implementing the following pseudo-code. Te problem is that in Pascal i can return user defined data structures (in this case: matrix), and i also tried to return it as a parameter with "var" but it gave a stack overflow error. Anyone can help me? pseudo … |
|
[code=cplusplus] class Base{ char* s1; public: ... ~Base(){ delete s1} } class Derived:public Base{ char* s2; public: ... //the constructor of the derived class will call the constructor of the //base class, so derived will contain s2 and s1 too. ~Derived(){ //HERE } void main(){ ... Base x[5]; ... }; … |
|
Hi all! I have just started learning c++ and i have a lil' problem compiling one of my programs (ADT). I havent finished it yet and started partialy verifying it, if it's correct or not, but i just met an error and i have no idea what the hell is … |