Ok this is the problem...
Basically when someone enters a figure, say £100, I want to remove the £ sound before doing some processing.
at the moment I have this:
program remove_pound;
uses
crt, sysutils;
var
s: string;
p: char;
begin
P := chr(156);
Writeln('Please enter an amount of money: ');
readln(s);
if p in s then // At the moment this is wrong. I have no idea why
begin
// I then need some code here to remove the £ sign
end;
The main problem is that I don't have a wide knowledge of all the possible commands in pascal, only been programming for a couple of days!!
If someone could explain how to achieve the above I would be most grateful.
Thanks
Greg
end.