Fwd: Arrays in C++

steven obbayi <[email protected]>
Newsgroups gmane.comp.programming.cppug
Message-ID <[email protected]>
Hey Abhinav,

try something like this....

float function_name(arguments)
{
float a[10];

// your code here
.
.
.
.
.

for(int x = 0 , x <= a_number, x++)
{
return a[x];
}
}

i hope this is good to you

Steve

--- Abhinav Gupta <[email protected]> wrote:
> To: [email protected]
> From: Abhinav Gupta <[email protected]>
> Date: Tue, 9 Mar 2004 05:24:13 +0000 (GMT)
> Subject: [cppug] Arrays in C++
> 
> Dear friends,
> I have a problem regarding arrays in C++. I am
> trying to implement a function that should return an
> array of type float.I could not return array using
> the folllowing code:
>  
> float[] function name ( function parameters){
> float a[10];
> :
> :
> return(a);
> }
> 
> 
> Abhinav
> 
> Yahoo! India Insurance Special: Be informed on the
> best policies, services, tools and more.


=====
Steve Obbayi,
Sobbayi Interactive,
http://www.sobbayi.com
[email protected]
Tel: +254 722 627 691



__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/cppug/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.