CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: CArray

  1. #1
    Join Date
    Mar 2000
    Posts
    2

    CArray

    I have had a problem since 1 day and I dont see how to do.It would be great if you could help me.

    I'm working in ClassDoc and I use CArray<int,int&> SymbolArray because I need an array with integers in.
    I want to discuss with another Class CEntropie,and more precisely,with a function: ComputeEntropy(CArray<int,int&> TabSymbol)
    So,I used an object of this class: CEntropie Entropie;
    and I wanted to do: Entropy.Compute(TabSymbol);
    but it puts me an error:
    ComputeEntropy:Cannot convert parameter 1 from 'class CArray<int,int&>' to 'class CArray<int,int&>'

    thank you for your help

    Thierry


  2. #2
    Join Date
    Mar 2000
    Location
    Hellas
    Posts
    242

    Re: CArray


    Hi Thierry

    why don't you change the declaration from

    ComputeEntropy(CArray<int,int&> TabSymbol)

    to

    ComputeEntropy(CArray<int,int&> & TabSymbol)

    so there is no need for any Copy to be performed

    Hope This Helps



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured