Title |
User |
Message |
Date Posted |
Re: Re: something wrong? |
Pawprint |
i got it now, thank you. |
Jul 26, 2011 - 5:21:45 pm UTC |
Re: Re: something wrong? |
jargon |
The val method has the following prototype: procedure Val(const s: string; var v; var code: word); It takes the string s and tries converting it into a number, held by v. If it fails, it stores the po... |
Jul 22, 2011 - 10:55:43 pm UTC |
Re: Re: something wrong? |
Pawprint |
okay, i fixed that, but it still says that I'm always outputting 'Waterloo' |
Jul 22, 2011 - 2:58:37 pm UTC |
Re: something wrong? |
jargon |
Your parser is one character off. (Try adding writeln('Parsed: ', city, ' ', temp, ' (', t, ')'); right before t1:=temp; to see what I mean.) |
Jul 21, 2011 - 11:04:10 pm UTC |
something wrong? |
Pawprint |
I think my code is right, but when I submit it, it keeps saying my output is 'Waterloo' It even happens when you make your code specifically output something else, so there must be something wrong... |
Jul 21, 2011 - 5:40:56 pm UTC |
Re: Re: Help? |
bbi5291 |
I graduated from Woburn last year. I'm a first-year university student now. |
Jan 20, 2011 - 5:32:40 am UTC |
Re: Re: Help? |
ilovepi |
yeah kk i got it thnx to brian Ur Awesome :) btw, wat grade r u in? |
Jan 20, 2011 - 2:38:48 am UTC |
Re: Re: Help? |
ilovepi |
yeah...about that...my code still doesnt work...check it for me plz? |
Jan 20, 2011 - 12:38:47 am UTC |
Re: Re: Help? |
bbi5291 |
"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." |
Jan 19, 2011 - 1:56:55 am UTC |
Re: Re: Help? |
ilovepi |
Okay, so it's repeating read(char) until char=' ' and then keep adding to a string right? And after that, readln. Thank you. |
Jan 19, 2011 - 1:45:46 am UTC |