Title |
User |
Message |
Date Posted |
Re: Re: Help? |
bbi5291 |
You could also read StealthAdept's suggestion (which you will find at the bottom of this page). I think the page I linked you to does give you enough information, but if you haven't learned pointers y... |
Jan 19, 2011 - 12:44:28 am UTC |
Re: Re: Help? |
ilovepi |
The website has too little information. Can you explain to me how to use it in the code to read in stuff? I still don't get it. |
Jan 19, 2011 - 12:36:03 am UTC |
Re: Help? |
bbi5291 |
You could read in the whole line and then parse it yourself and use the Val function to convert a string to an integer. Or you could use this: http://www.freepascal.org/docs-html/rtl/sysutils/sscanf.h... |
Jan 18, 2011 - 1:29:15 am UTC |
Help? |
ilovepi |
I still don't know how to read in a string and an integer seperated by a space. Can anyone help? |
Jan 18, 2011 - 12:58:21 am UTC |
thanks |
frenzybenzy |
found the problem...this problem is a pain |
Nov 30, 2008 - 10:40:33 pm UTC |
Re: Re: Re: can you have aray of strings? |
hansonw1 |
As said above, though, there is no need for an array. It's actually much simpler to code this way, too. |
Nov 30, 2008 - 9:36:36 pm UTC |
Re: Re: Re: can you have aray of strings? |
bbi5291 |
Evidently, the problem with your submissions is not that you aren't allowed to have arrays of strings, but rather what is discussed below, the difficulty of reading the input in Pascal. Also, an arra... |
Nov 30, 2008 - 9:20:01 pm UTC |
Re: Re: can you have aray of strings? |
frenzybenzy |
i did try..but it didnt work. btw...this is pascal |
Nov 30, 2008 - 8:53:54 pm UTC |
Re: can you have aray of strings? |
bbi5291 |
Yes, although it's not necessary for this problem. And I advise you to try things before you ask us if they'll work or not. |
Nov 30, 2008 - 7:43:11 pm UTC |
can you have aray of strings? |
frenzybenzy |
|
Nov 30, 2008 - 7:38:36 pm UTC |