Re: set method in base class
From: Karl Heinz Buchegger (kbuchegg_at_gascad.at)
Date: 03/19/04
- Next message: Chris \( Val \): "Re: using namespace vs. ::"
- Previous message: moxi: "Re: set method in base class"
- In reply to: moxi: "Re: set method in base class"
- Next in thread: Chris \( Val \): "Re: set method in base class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 19 Mar 2004 12:37:13 +0100
moxi wrote:
>
> Hi Karl,
>
> No there is no error message. The code is similar to:
>
> void set (a, b) // in base case ..
> {
> set i[a][b]=1; // array of base class objects
> cout << i[a][b] ; // testing prints 1
> }
>
> But the value of the element in the array is not changed when the array is
> printed by the client. There is no set method in the derived class.
Please post real code. You have a real problem and I need to see the
real code (not somthing similar, which is full of errors). In an ideal
world you would post a complete, compilable program such that I can
cut&paste the code into my IDE, test your code and see the same
symptoms then you see.
-- Karl Heinz Buchegger kbuchegg@gascad.at
- Next message: Chris \( Val \): "Re: using namespace vs. ::"
- Previous message: moxi: "Re: set method in base class"
- In reply to: moxi: "Re: set method in base class"
- Next in thread: Chris \( Val \): "Re: set method in base class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|