Re: set method in base class

From: Karl Heinz Buchegger (kbuchegg_at_gascad.at)
Date: 03/19/04


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


Relevant Pages

  • Re: What about this?
    ... echo validate_form; ... // First create an array to contains error message ... // Then create an array to contains OK Data from formfields. ...
    (alt.php)
  • Re: 3D Matrix Manipulation
    ... Any variable with more than 2 dimensions is an array, and certain operations that are only defined for matrices will not work on arrays. ... matrix multiplication will not work because one of the pieces of data being multiplied is not a matrix and elementwise multiplication will not work because the two pieces of data being multiplied are not the same size and neither is scalar. ... > Another problem is that I am able to process the first line in the command> window yet as soon as I run the script, I get an error message depending> on the syntax. ...
    (comp.soft-sys.matlab)
  • Re: What about this?
    ... echo validate_form; ... // First create an array to contains error message ... // Then create an array to contains OK Data from formfields. ...
    (alt.php)
  • Re: memory problem, I guess
    ... If I use part of the data I'm getting the right transform. ... I searched the web and found that the error message is ... Below is the error message I'm getting when I increas my array size: ... trying to use (it would have been good to specify that)? ...
    (comp.lang.fortran)
  • Re: UDT Array Parameter
    ... It looks like the array passing was already working - it appears that my ... same error message; apparently, the late-bound function is the IsArray ... Private Sub Form_Load ... Dim testAs myTestType, b As Boolean ...
    (microsoft.public.vb.general.discussion)