This is the problem I'm trying to read out the numbers everything works but when i put 100 or 1000 i get an text with the first numbers but then the zeros come up as errors
this is my code
int num;
double ones;
double tens;
double teens;
double hundreds;
double thousands;
int thousandsNum;
int hundredsNum;
int tensNum;
int onesNum;
int teensNum;
cout << "Enter the number " << endl;
cin >> num;
cin.ignore();
I've started programming myself so bear with me, however:
On line 235, I've purposely commented it out and it seem to be working just fine...
However, I do not know if this interfere with the rest of the program...I've typed in other random numbers from the 1's all the way to 1000 and it seem to be working ok.
I do know that the output is somehow tied to the numbers above 99
Good luck
**Update** 11:03PM
"It seem as if the problem is the program is having issues counting from 100-109, when it hits exactly 110, it works (hope that helps)"
I got it all down but now i just need to know how to repeat the whole code when i get a new name for example the input text file looks like this
2566
Mick Moster 10/4/2011 2845.92
Danny Boy 10/6/2011 194.65
The first number is the check number so i brought everything into the file with this line of code
infile >> checknum >> namef >> namel >> datem >> dash1 >> dated >> dash2 >> datey >> amount >> dot >> cents >> namef2;
now everything works but i have no clue on how to repeat the process so when everything is printed out it starts again (cause I'm making checks for a company in the problem and i want to start a new check for when it gets to Danny Boy) with a page break of stars (*****) or any other page break.