I don't see why its yelling at me, maybe u will.
Heres the error from the compiler:
--------------------Configuration: CheckBook2 - Win32 Debug--------------------
Compiling...
CheckBook2.cpp
c:\program files\microsoft visual studio\myprojects\checkbook2\checkbook2.cpp(64) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
CheckBook2.obj - 1 error(s), 0 warning(s)
*****************************
and heres the program....
Code:
/* Steven Billington
September 12, 2002
Program File: CheckBook2.cpp.cpp
This program is same as checkbook but converts all input of transtype to be a capital letter.
*/
#include <iomanip.h>
#include <iostream.h>
#include <ctype.h>
int main ()
(
double startingbalance, endingbalance, transamount;
char transtype;
//Module for getting the data
cout <<"Enter the starting balance and press <enter>: ";
cin >>startingbalance;
cout <<"Enter the transaction type and press <enter>: ";
cin >>transtype;
toupper (transtype);
cout <<"Enter the transaction amount and press <enter>: ";
cin >>transamount;
//Module for performing calculations
{
if (transtype == 'D')
endingbalance = startingbalance + transamount;
else if (transtype == 'W')
endingbalance = startingbalance - transamount;
else
cout <<"You enterd an invalid transaction type."<<endl;
continue;
}
//Module for displaying results
cout <<setiosflags(ios::fixed | ios::showpoint | ios::right)<<setprecision(2);
cout <<endl;
cout <<"Starting Balance $"<<startingbalance<<endl;
cout <<"Transaction $"<<transamount<<transtype<<endl;
cout <<"Ending Balance $"<<endingbalance<<endl;
return 0;
}