Re: HELP!! Two questions from <<the c programming language>>
- From: Guru Jois <guru.jois@xxxxxxxxx>
- Date: 31 May 2007 02:50:28 -0700
On May 31, 2:24 pm, Chris Dollin <chris.dol...@xxxxxx> wrote:
Guru Jois wrote:
A bunch of not-C, for no terribly good reason but:
while EOF
I don't think so.
do
begin
input char
if char = space then
begin
if flag = 0 then
No declaration for `flag`; hence, no know state.
begin
let flag = 1;
print char;
end
end
else
begin
let flag = 0
print char
end
end
goto step 2
You have no step 2 (in fact you have no steps).
You don't need `goto` for this problem, especially if you're
going to write in an invented pseudocode.
end while
Make up your mind whether you're using begin-end blocks or
whether your control-structures have end-Whatever syntax.
--
"He's dead, Jim, but not as we know it." Unsaid /Trek/
Hewlett-Packard Limited Cain Road, Bracknell, registered no:
registered office: Berks RG12 1HN 690597 England
just a steps to that asker... sir. I wrote it as steps, but later
removed, but forget this one....
Please identify notable mistakes...not a silly ones
Bye
Guru Jois
.
- Follow-Ups:
- Re: HELP!! Two questions from <<the c programming language>>
- From: Chris Dollin
- Re: HELP!! Two questions from <<the c programming language>>
- References:
- HELP!! Two questions from <<the c programming language>>
- From: Tak
- Re: HELP!! Two questions from <<the c programming language>>
- From: Ian Collins
- Re: HELP!! Two questions from <<the c programming language>>
- From: Tak
- Re: HELP!! Two questions from <<the c programming language>>
- From: Guru Jois
- Re: HELP!! Two questions from <<the c programming language>>
- From: Chris Dollin
- HELP!! Two questions from <<the c programming language>>
- Prev by Date: A good compiler please....
- Next by Date: Re: A good compiler please....
- Previous by thread: Re: HELP!! Two questions from <<the c programming language>>
- Next by thread: Re: HELP!! Two questions from <<the c programming language>>
- Index(es):
Relevant Pages
|