Posted on 2003-03-18
I have to make a procedure that does the following (assuming that there is a string containing a record of a number constatnt):
1. Determines the type of the constant - integer, not defined etc
2. Warns for an error in the entered string
3. -OK- message if the string contains the right constants
4. Returns the string (the part with the right constant)
I was given some clues about using "set of char", "case <EXPRESSION> of" etc., but I'm new to Pascal and I can't really bring all this together. I will appriciate if you could give me some hints or provide me with the source at least of a simular program. Thank you very much.