-
March 29th, 2000, 04:16 AM
#1
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
-
March 29th, 2000, 04:37 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|