Title |
User |
Message |
Date Posted |
Re: PASCAL |
bbi5291 |
Aarg, I was going to submit a fast C++ solution, but I've exceeded the 3/5 ptr limit. Basically it's because C++ strings are slow. |
Nov 26, 2008 - 3:53:36 am UTC |
PASCAL |
zerglingrush |
lol, love how all the pascal solutions are faster than C++ |
Nov 26, 2008 - 3:47:53 am UTC |
Nevermind |
StealthAdept |
Never mind, what I said doesn't work on pascal i think. you'd have to read until you get a '-' or a number. Just do what bosco said. |
Nov 26, 2008 - 2:45:25 am UTC |
Also |
StealthAdept |
You can also try reading individual characters and putting them at the end of a string until you get to a space, at which point you read an integer. |
Nov 25, 2008 - 4:08:52 am UTC |
yep. |
bleung91 |
read in the string and parse it manually. i.e. separate the string and number yourself. the reason you can't do something like this (It's been while since I coded in pascal), readln(city,temperatur... |
Nov 25, 2008 - 3:59:19 am UTC |
is there's a way to do it in Turbo Pascal? |
zhxl0903 |
I tried to read in 2 variables of different types continuously in Pascal, but it only gave me errors of ... lol |
Nov 25, 2008 - 3:46:42 am UTC |