This is the first im hearing about them being stored as characters and not integers. This is the SAMPLE program that my BOOK shows:
using namespace std;
int first, second, third;
in_stream >> first >> second >> third;
out_stream << "The sum of the first 3\n"
<< "numbers in the infile.dat\n"
<< "is " << (first + second + third)
I copied this exactly as is (with out the documentation) in order to test what I am doing wrong. The input is supose to come from the infile.dat file (and I made a notepad and named it infile.dat and gave it the numbers the BOOK says it is supose to have(1, 2, 3, 4, one on each line)) and I made the outfile.dat file. Left it blank like the program sample program has it. This program is supose to take from infile.dat the first three numbers and sum them up and write it to the outfile.dat file! Still NO luck! I think the problem I am having is how to make these files I can read and write too... I copied this code stright from the book and the only thing I did was try to make the file it reads from and the file it writes too. Sorry for being such a pain
I had to skip ahead 300 pages just to read up on what an atoi is...