CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: laftaxxx

Search: Search took 0.02 seconds.

  1. Replies
    9
    Views
    2,669

    Re: write to a binary file

    Thanks Paul

    So my function should be

    void arrayToFile(const char * filename, int*array, int size)

    sorry about the char instead of int...oversight.
  2. Replies
    9
    Views
    2,669

    Re: write to a binary file

    thanks laserlight. I passed the outfile, got the following error.

    C:\Users\Public\Documents\lkh\main.cpp||In function 'int main()':|
    C:\Users\Public\Documents\lkh\main.cpp|25|error: invalid...
  3. Replies
    9
    Views
    2,669

    Re: write to a binary file

    Thanks Paul I have made the corrections and still get errors.

    Corrected program

    #include <iostream>
    #include <cctype>
    #include <string>
    #include <fstream>
    #include <stdio.h>
  4. Replies
    9
    Views
    2,669

    write to a binary file

    This is what I have so far

    My function does not work and my compiler says my int array is not initialized

    #include <iostream>
    #include <cctype>
    #include <string>
    #include <fstream>
    #include...
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured