I'm trying to only read the int's and the symbol - (negative) from the file.
right now my code is where m,d, and y are dates.
Everything works fine. Except I do not read the - symbol.
Any one know how to solve this?
fin.open(ifile.c_str()); fin >> m1 >> c >> d1 >> c >> y1; fin >> m2 >> c >> d2 >> c >> y2; fin >> m3 >> c >> d3 >> c >> y3; fin.close();
For example date -10/-1/1999
will be read as 10/1/1999
for my assignment I must read the negative symbol.