Ok i want to know how to make a sentence appear word by word in GW BASIC.For example if the sentence is I Am Boy then how to make it appear as so "I" comes first printed then "A" ,then "m" , then B and so on....simply like in typing Plz help me And it will be appreciated if you post a working programme codingg

有帮助吗?

解决方案

Here's an example that waits three seonds:

T! = TIMER + 3: WHILE TIMER < T!: WEND

其他提示

10 cls
20 rem variables go here
30 print A$
40 gosub 500 REM Timer Here
50 print B$
60 gosub 500

etc

510 Otime=val(right$(time$,2))
520 Ntime=val(right$(time$,2))
530 if Ntime-Otime>3 or Ntime-Otime<0 then return else goto 510

This should work, if not, it will lie in the 500 lines and should only need a minor adjustment.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top