Re: initialize array within a class by a class member



greg wrote:
> When we initialze a month, we know the no of dates in that month, so
> base on that we can create a array of the right size for each date of
> the month. But how do I define it in the month class?

I don't know. What do you need those dates for? You explained nothing
about how your 'Month' class is going to be used, and the use or the
class is what defined the interface, and the interface is what defines
the inner layout.

V


.



Relevant Pages

  • Re: initialize array within a class by a class member
    ... When we initialze a month, we know the no of dates in that month, so ... base on that we can create a array of the right size for each date of ... Greg ... Prev by Date: ...
    (microsoft.public.vc.language)
  • Re: passing a NULL pointer from vb6 to an ATL method
    ... COBJINTERFACES and use the C macro for calling into the interface. ... local/call_as is necessary fior marshaling. ... Dim array as Double ... Then you need to write two shim functions in C to link with the ...
    (microsoft.public.vc.atl)
  • Re: Anders Hejlsberg comment on immutable objects
    ... > example of a situation where a read interface does help out. ... > able to read the byte array, ... > and trust the server method, you simply pass the full blown object. ... what is a violation of a const contract. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: .NET and COM Interop
    ... > I added a function that sets the array and it worked, ... To implement the interface properly you have to be a bit sneaky. ... try to implement the property properly, the compiler will complain. ... AssemblyInfo file whereas C# does not. ...
    (microsoft.public.dotnet.framework.interop)
  • ptrace API extensions for BTS
    ... I would like to discuss the ptrace user interface for the BTS extension. ... we need to provide access to an array of BTS records ...
    (Linux-Kernel)