I get the right input, but its giving out the numbers unformatted in the output ie: when it should be
input:
3 5 (7)
$58 3,400
output:
3 5 -7
58 3400
it gives me
3
5
-7
5
8
3
4
0
0
inFile.get(aa);
while( ! inFile.eof())
{
switch(aa)
{
case '$':
break;
case ',':
break;
case '(':
outFile << '-';
break;
case ')':
break;
case '\t':
break;
default:
outFile << aa << endl;
break;
}
inFile.get(aa);
}
inFile.close();
outFile.close();