0
Good evening, I have a problem in Pascal, I take a variable in String, the variable would be a Hexadecimal, I need to convert this String to integer and do not know how to do. Thank you
program trabalho_integrador ;
var
a, b, c, a1, a2, b1, b2, c1, c2, calc2 : String;
y : boolean;
calc, i,z : integer;
begin
write('Digite A: ');
readln(a);
write('Digite B: ');
readln(b);
write('Digite C: ');
readln(c);
a1 := copy(a,1,1);
a2 := copy(a,2,1);
b1 := copy(b,1,1);
b2 := copy(b,2,1);
c1 := copy(c,1,1);
c2 := copy(c,2,1);
z := StrToInt(a1);
readln();
end.
How do I import the library from this function?
– matheus gomes