Readln!!

This is a discussion on Readln!! within the Pascal forums in Programming Languages category; Hello all! I was trying to compile something a I made with freepascal, that I suppose was standard, but I can't. Maybe you can help me. ************************************************** ***** program pru; type Str acked array[1..8] of char; var s:Str; begin readln (s); writeln ('You have just written that: ',s); end. ************************************************** ***** I let you this snippet that is the thing that I don't understand. The message I get is that the type Str can't be read or written. PD:Sorry for my english. I appreciate your help. Zaka....

Go Back   Application Development Forum > Programming Languages > Pascal

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-14-2008, 12:37 PM
Zaka E-Lab
Guest
 
Default Readln!!

Hello all!

I was trying to compile something a I made with freepascal,
that I suppose was standard, but I can't.

Maybe you can help me.
************************************************** *****
program pru;
type
Stracked array[1..8] of char;
var
s:Str;
begin
readln (s);
writeln ('You have just written that: ',s);
end.
************************************************** *****
I let you this snippet that is the thing that I don't
understand.

The message I get is that the type Str can't be read or
written.

PD:Sorry for my english.

I appreciate your help.

Zaka.
Reply With Quote
  #2  
Old 01-14-2008, 02:19 PM
Marco van de Voort
Guest
 
Default Re: Readln!!

On 2008-01-14, Zaka E-Lab <shanatorio@gmail.com> wrote:
> begin
> readln (s);
> writeln ('You have just written that: ',s);
> end.
> ************************************************** *****
> I let you this snippet that is the thing that I don't
> understand.
>
> The message I get is that the type Str can't be read or
> written.
>
> PD:Sorry for my english.
>
> I appreciate your help.


After correcting a : to an = in the type line it works here:

D:\testing>blatest
12345
You have just written that: 12345

So I think you'll have to provide some more info.

p.s. I f-uped to comp.lang.pascal.misc because FPC's more on topic there.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 01:03 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.