| | |
Pascal calculator program
Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2007
Posts: 44
Reputation:
Solved Threads: 0
I think it would be easiest to use an array of chars. Say this for example (if it works)
not sure if this helps at all, but that would atleast put my equation into the array and display the equation (had the writeln to make sure the equation was in the array)
Pascal and Delphi Syntax (Toggle Plain Text)
Var myEquation : array[1..256] of char; Equ : string[255]; my_file :text; BEGIN assign(my_file, 'input.txt'); reset(my_file); read(my_file, Equ); myEquation := Equ Writeln(myEquation[1..10])
not sure if this helps at all, but that would atleast put my equation into the array and display the equation (had the writeln to make sure the equation was in the array)
Last edited by Gotovina7; Nov 29th, 2007 at 9:47 pm.
•
•
Join Date: Nov 2007
Posts: 44
Reputation:
Solved Threads: 0
Hey man, I totally appreciate all the help you've given me during this massive thread (and I have learnt stuff). But this assignment is due tomorrow, so I am just going to throw together what I have and hope for the best.
THe next assignment I have is the same concept but I am suppose to use linked lists as the main storage of the equation (records and arrays are allowed)
THe next assignment I have is the same concept but I am suppose to use linked lists as the main storage of the equation (records and arrays are allowed)
Ah well, sorry I didn't see this sooner. If it is due today then there's not much more to do here.
If all you wanted to do was store your equation as a string (an array of characters), then we've gone in loops for the wrong assignment.
All the stuff you've done helps, and will help you in your next assignment especially...
If all you wanted to do was store your equation as a string (an array of characters), then we've gone in loops for the wrong assignment.
All the stuff you've done helps, and will help you in your next assignment especially...
![]() |
Similar Threads
- C++ Calculator Program (C++)
- Really need help with the interactive Calculator program, or will be dead (C++)
- pascal triangle program (C++)
- starting a calculator program in C (C)
- Java Swing Calculator program not running. It has 0 errors (Java)
- Wierd error messages with calculator program (C++)
- need help with calculator program in C (C)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: RES file creaton under Vista
- Next Thread: Deleting components in D2007
| Thread Tools | Search this Thread |
Tag cloud for Pascal and Delphi






