Temperatures (Easy game)

So I was trying to code it, it’s about search array, but I use PASCAL and I can’t seem to find a way to get the numbers given into arrays because they’re given in a string format, anyway to do this then??


You might want to read this useful webpage : http://lmgtfy.com/?q=pascal+string+to+integer

And also perhaps : http://lmgtfy.com/?q=pascal+string+split


uses strutils;
for i := 0 to N - 1 do
    a[i] := StrToInt(ExtractWord(i + 1, TEMPS, [' ']));