April 18, 2025, 06:53:42 pm
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
Forever
Login with username, password and session length
News
: Want to see a specific Tutorial? ASK!
Home
Help
Search
Arcade
Links
Staff List
Login
Register
New Text Challenge
Weekly Qbasic and Qb64 Lesson Topics
>
Forum
>
TUTORIALS
>
Text Adventure
>
New Text Challenge
>
Message #1651
Pages: [
1
]
« previous
next »
Print
Author
Topic: New Text Challenge (Read 1961 times)
SMcNeill
Newbie
Posts: 3
Re: New Text Challenge
«
on:
November 24, 2012, 12:17:45 am »
An easy solution to this one:
Code:
DIM sentence AS STRING, word AS STRING
PRINT "Give me a sentence: ";
INPUT sentence
sentence = sentence + " "
DO
wordpos = INSTR(sentence, " ")
word = LEFT$(sentence, wordpos - 1)
sentence = RIGHT$(sentence, LEN(sentence) - wordpos)
PRINT word
LOOP UNTIL wordpos = 0
«
Last Edit: November 24, 2012, 12:20:07 am by SMcNeill
»
Report Spam
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> Useful Information ,Rules,FAQs,LINKS,etc.
===> INTRODUCE Yourself
=> General QB64 Forum
=> MS DOS, FREE DOS, ANY DOS
-----------------------------
QB64 lessons and tutorials,Games
-----------------------------
=> Lesson Disussion
=> Weekly Lesson
=> Games
-----------------------------
TUTORIALS
-----------------------------
=> QB64 Tutorials
=> Text Adventure
=> QBasic Tutorials
=> Other Tutorials
-----------------------------
UNSEENS GDK+SFML Librarys
-----------------------------
=> Discussions on GDK+SFML
=> GDK+SFML Demos, and projects
-----------------------------
DEMOS
-----------------------------
=> Working QB64 Demos
=> QB64 Games
=> QB64 Programs You Are Proud Of.
=> Function + SUB Club
-----------------------------
OFF TOPIC,and Off The wall
-----------------------------
=> OffTopic and Off the Wall
Powered by
EzPortal
Loading...