1. Find again

------=_NextPart_000_002F_01C040E3.A87270C0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks for the solution Bernie, but I've run into another prob:

sequence names,words

names =3D{'m','p','n'}
words=3D{'land','space'}

names works but words doesn't. It seems as soon as you add a letter to =
one of the '   '  names, it messes it up. What's wrong here?

-Thomas


------=_NextPart_000_002F_01C040E3.A87270C0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thanks for the solution Bernie, but =
I've run into=20
another prob:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>sequence names,words<BR><BR>names=20
<DIV><FONT face=3DArial size=3D2><EM>names </EM>works but <EM>words =
</EM>doesn't. It=20
seems as soon as you add a letter to one of the '&nbsp;&nbsp; '&nbsp; =
names, it=20
messes it up. What's wrong here?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-Thomas</FONT></DIV>

------=_NextPart_000_002F_01C040E3.A87270C0--

new topic     » topic index » view message » categorize

2. Re: Find again

On Sat, 28 Oct 2000 13:33:29 -0700, Paul Kerslake <paulk at UNISERVE.COM>
wrote:

>Thanks for the solution Bernie, but I've run into another prob:
>
>sequence names,words
>
>names ={'m','p','n'}
>words={'land','space'}
>
>names works but words doesn't. It seems as soon as you add a letter to one
of the '   '  names, it messes it up. What's wrong here?
>
>-Thomas
>
>

   Thomas:
       wait_key only returns ONE ASCII character at a TIME.
       You can only use a SINGLE character between single qoutes.
       If you want to read the word land from the keyboard you
       have to use the gets(0) function and then use the find function
       to look for the SEQUENCE returned from the keyboard in
       your words list.
       I think that you need to look at the Library document for
       each function that you are using and study the examples  in
       that document very carefully. Pay very close attention to
       what wheather a function RETURNS a SEQUENCE, INTEGER etc and
       what type of parameters it requires to use it.
       I rather not write your code for you because I don't think
       you will learn as much as if you write your own.
       Your doing ok on your own so keep trying and use the Library
       document to look up each function you use.
   Bernie

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu