Yoko

All sides of Injection
It is currently 2025-10-21 12:48:23

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Программерам
PostPosted: 2005-05-21 16:29:35 
Offline

Joined: 2004-11-04 20:47:47
Posts: 8
Люди нужно сделать прогу на QBasic смысл:
Дана строка из слов, разделённых пробелами.Распечатать те слова, в которых отсутствуют буквы k,l,m,o

Плиз хелп :roll: очень надо

з.ы. Если кто играет на ДРВ за работу могу отблагодарить :)


Top
   
 Post subject:
PostPosted: 2005-05-22 12:19:47 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
вспоминая детство...

Code:
DECLARE SUB printgood (sss$)
CLS
INPUT "Enter your sentence [", s$
s$ = s$ + " "
start = 1
l = LEN(s$)

FOR i = 1 TO l
IF MID$(s$, i, 1) = " " THEN
 printgood MID$(s$, start, i - start)
 start = i + 1
END IF
PRINT "--- (c) Yoko --- FIN"
NEXT

SUB printgood (sss$)
l = LEN(sss$)
FOR k = 1 TO l
 c$ = MID$(sss$, k, 1)
 IF c$ = "k" OR c$ = "l" OR c$ = "m" OR c$ = "o" THEN EXIT SUB
NEXT
PRINT sss$
END SUB


Top
   
 Post subject:
PostPosted: 2005-05-22 18:09:26 
Offline

Joined: 2004-11-04 20:47:47
Posts: 8
Ты лучший :D сенк огромное спасибо :D


Top
   
 Post subject:
PostPosted: 2005-05-27 03:28:09 
Offline
User avatar

Joined: 2004-11-07 01:22:35
Posts: 291
Location: Черкассы
вот млин неуспел... :(
надо было мне раньше появляться в форуме :)


Top
   
 Post subject:
PostPosted: 2005-05-28 21:48:52 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Гм... ага, надо бы, а то вот Yoko отвлекается от важных дел :!:

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited