October 30th, 2013, 02:26 PM
Thanks Paul
So my function should be
void arrayToFile(const char * filename, int*array, int size)
sorry about the char instead of int...oversight.
October 30th, 2013, 12:27 PM
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...
October 30th, 2013, 12:14 PM
Thanks Paul I have made the corrections and still get errors.
Corrected program
#include <iostream>
#include <cctype>
#include <string>
#include <fstream>
#include <stdio.h>
October 30th, 2013, 11:11 AM
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...