View Single Post
Join Date: Apr 2008
Posts: 160
Reputation: dmanw100 is on a distinguished road 
Solved Threads: 12
dmanw100's Avatar
dmanw100 dmanw100 is offline Offline
Junior Poster

Re: Problems with reading from a sequential file

 
0
  #5
Sep 4th, 2008
My personal preference is to declare variables of the same type in the same declaration, such as double loanAmount, term, numMonths, intMonth, double paymentAmt; which makes the code a little shorter and nicer to read. Switch statements can also make it a little simpler than using else if(). Just some ideas
Reply With Quote