Where do you initialize and update the "T" variable?
T = 0
T = T + 1
at first look (and the knowledge of knowing that I have NO CLUE what it's supposed to do)
First! J00 never increment T.... ever... it stays at 0 indefinatly
I also think you mean
Code:
T = T + 1
C$=MID$(USER$,T,1)
LEFT$ get T characters starting from the leftmost
ALSO! Unless that program isn't done you can make that very shorter.
Code:
CLS
SCREEN 12
LOCATE 1,1:INPUT "?";USER$
LOCATE 20,1:PRINT USER$ [/code]
Code:
for t = 1 to length
c$ = right$(left$(t))
next
show that code to your teacher
well for 1 im not in school so im not going to show anything to a teacher i posted this for my own personal program and i realize that i had left a couple things out on my post but i still cant get the desired results what i am trying to do is be able to list every word separatly within an input for example the sentence hello my name is should return word$(1)="hello" word$(2)="my" word$(3)="name" word$(4)="is" but i cant figure out how to break down the input and put the words into separate blocks i know that when a space " " is encountered this would tell it to add another word exmp word$(6)(7)(8) and so forth i just cant figure out the comand line i need but if somebody understands what i am trying to do would you please help?
for 1 thank you ChaOs, i really dont understand using mid left right strings so i just decided to use inkey to separate the words heres how i did it
Code:
cls
screen 12
dim word$(100)
w=1
t=1
do
w$=inkey$
word$(w)=word$(w)+w$
if w$=" " then
w=w+1
t=t+l+1
end if
l=len(word$(w))
locate 10,1:print word$(w)
locate 22,1:print t
locate 20,t:print word$(w)
if w$=chr$(13) then exit do
loop
but thanks anyway for the help i will save it and may use it for later (learning) which we all have room to do