Thread: Help please!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    142

    Help please!

    How do i pass array to int main?


    cheers.


    Code:
    char openR(){
                           
                           
                           ifstream filein;
                           filein.open("stores.ddf");
                           
                           if (!filein) {
                                        
                                        cout<<"\file did not open";
                                        return 0;
                                        
                                        }
                           
                           filein.seekg(0,ios::end);
                           len=filein.tellg();
                           filein.seekg(0,ios::beg);
                           
                           filein.read(array,len);
                           
                           filein.close();
                           
                           return (array[256]);
                           
                           
                          };
    it compiles fine but i just can't see the content of array in int main.
    Last edited by wart101; 01-12-2007 at 12:22 AM.
    WhAtHA hell Is GoInG ON

Popular pages Recent additions subscribe to a feed