Article View: alt.flame.pascal
Article #38Re: Check this OUT!!!!!! Look over here!!!!
From: Philip Ward
Date: Fri, 22 May 1998 00:00
Date: Fri, 22 May 1998 00:00
52 lines
1882 bytes
1882 bytes
Baljit Purewal wrote:
> Hi I am lost completly please help me figure out this prolbem.I can't seem
> to find a way to add words into an array. This is my assignment down below.
I have to assume that you copied this by hand, cause if this is what is in your
ide, it wouldn't even compile..<much deleted>
> Begin
> Assign (infile,'name1');
> reset(infile);
> current-word :='';
> While not eof (infile) do
>
> Begin
> Read(infile,char_buffer);
> Case char_buffer of
>
> 'A'..'Z','a'..'z' : current_word := current_word + char_buffer;
>
> Else
> If current_word_word <> '' then {word is non � blank}
> Add_word (current_word, Words,Counts);
> Current_word:= '';
> End;
> End; {case}
> End;
> If current_word <>'' then
> Add_word(current_word, words,counts);
> End;
>
> Begin {main}
>
> {code}
> End. {main program}
excluding the obvious typos, I can give you a couple of hints
If [condition] then [statement];
If [condition] then
begin
[statement]
.
.
[statement]
end;
Phil
Technical Details
Message-ID:
<3565A17C.500C9F69@vh.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<895592972.438063@nn1> <01bd857b$cb359540$160067d1@baljit>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 108ebd,546998be133e9d46 X-Google-Attributes: gid108ebd,public X-Google-Thread: 10cc59,546998be133e9d46 X-Google-Attributes: gid10cc59,public X-Google-Thread: 10eb32,546998be133e9d46 X-Google-Attributes: gid10eb32,public From: Philip Ward <thebear@vh.net> Subject: Re: Check this OUT!!!!!! Look over here!!!! Date: 1998/05/22 Message-ID: <3565A17C.500C9F69@vh.net> X-Deja-AN: 355594976 Content-Transfer-Encoding: 8bit References: <895592972.438063@nn1> <01bd857b$cb359540$160067d1@baljit> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Organization: http://extra.newsguy.com Newsgroups: alt.flame.pascal,borland.public.turbopascal,comp.lang.pascal,borland.public.turbopascal