Thread: Taking a array threw fucntion and assigning it to local var

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Wen Resu
    Join Date
    May 2003
    Posts
    219

    Taking a array threw fucntion and assigning it to local var

    Well i'm takign an array
    IE

    Code:
    int  number[4] = { 1, 0 , 2 ,3 } ;
    
    then i pass it to my function
    
    Number Number::operator= (int *theNumber) {
      int **localNumber = &theNumber;
    }
    I'm just wondering if i am doing this correctly, i'm not at stage in my project were i can realy test it.
    IF i am doing it right could you guys suggest a better way to do it.

    Thanks
    Last edited by Iamien; 01-09-2004 at 11:28 PM.

Popular pages Recent additions subscribe to a feed