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

Threaded View

  1. #1
    Join Date
    Dec 2006
    Posts
    27

    Problem with '<<'

    Hi, I've this code and I don't know how fix the Error: Member function must be called or its address taken in function main():

    Code:
    #include <iostream>
    #include <fstream>
    #include <ostream>
    
    using namespace std;
         
    struct box { 
         high;
         width;
         diagonal;
    };
    
    int main() {
    int i;
    int j;
    box make[8][8];  
    ofstream thing ("sample.xxx", ios::out | ios::binary); 
        
    thing.write <<  make[i][j] = 128;    // Here is error
        
    }
    plz.help.me
    Last edited by Brad Jones; December 19th, 2006 at 11:11 AM.

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