RSS Forums RSS
Please support our Pascal and Delphi advertiser: Programming Forums

Pascal calculator program

Join Date: Nov 2007
Posts: 44
Reputation: Gotovina7 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Gotovina7 Gotovina7 is offline Offline
Light Poster

Re: Pascal calculator program

  #14  
Nov 18th, 2007
Originally Posted by Duoas View Post
You have no errors. However, I would be inclined to make a single enumeration type to tell me what the element is, as I suggested above.


What do you mean? I dont really understand what you are doing here
 type tType = (number, add, subtract, multiply, ...);
            type tElement = record element_type: tType; number: integer end; 

That second line confuses me. Records are a bit confusing. I read my textbook on them, but they are still confusing me. I am not really sure what my program is doing. Like, I can't understand the record part of it. Does my equation from the input file go into the record? How would I assign numbers from my file into "num" in the record, and operators from my file into the appropriate places in the record?
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:01 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC