Members Login.
 

Please register HERE to be part of our Community
Contest of the Day.
 
Current Promotions.
 
Earn By Posting
 
Participate in forum and Earn $$$.
  • Referrer Credit - BRL$ 100
  • Positive Rep Cr. - BRL$ 3
  • New Thread Cr.- BRL$ 3
  • Posting Cr. - BRL$ 2
  • Post size Credit
Full List of BRL$ Earnings
Sponsors.
 


Programming Anything related to coding, programming c, c++, vc++, c#, java, delphi, Visual Basic

Reply
  #1 (permalink)  
Old 05-16-2008
Moderator
 
Join Date: Apr 2008
Posts: 738
BRL$: 163.27
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 79
sysax is on a distinguished roadsysax is on a distinguished roadsysax is on a distinguished roadsysax is on a distinguished road
Default Programming in QBasic - Tutorial -

How do i program In Basic? [Tutorial]
First of all, This is a language for people who want to start and you can learn what the terms of programming is , like Integer , Strings , etc...
Basic is a programmers language of the 1990, this isn't updated and still in dosmode.
Basic is an older version of Visual Basic.

You can program in Basic with Qbasic with XP.
IF you want to learn basic, download Qbasic and follow this tutorial.
Since it's hard to find the download link i will give it:
Code:
http://www.qbasic.com/wbb/filebase_e...9dac8a027398c4
Now save and extract.

Qbasic's projects are .bas !
so right click , properties , and then click browse and search qbasic to open always the .bas files!


LETS START WITH THE TUTORIAL!

Open Qbasic and press Esc.
We gonna start immidacly with the first code.

Code:
CLS
this cleans your Qbasic prompt.

Now , there are codes to make ur program big or small.
Use Screen + a number . --> Number is an Integer.
So example:
Code:
SCREEN 3
but you can use Screen 2 , screen 1 , and screen 4, etc...
BUT YOU NEED TO USE ALMOST ALWAYS CAPS IN QBASIC.

Okey , now we gonna learn some functions.

PRINT -> Will show a text
INPUT -> Let the user Input something.
SLEEP -> Waits untill the user will press a key.
SLEEP + INTEGER -> SLEEP 1 will wait 1 second before he procedures
END -> ends your program



Now we will show you how to use these !


$ means that you declare a string.
Try to understand this:

Code:
CLS
SCREEN 2
PRINT "Hello!"
INPUT "Wats Your name?" ;name$
PRINT "So Your name is "+ name$ + "? Awesome Name dude!"
END
a $ will save the Inputted thing by the user. Called a string.
In print you can see "text" + the string + "text"
And don't forget to put the ; after the input.
So this is a part , and if you understand this.
Go to step 2.

Maybe looks PRINT that you print with a printer , but no , it's that called
But if you like to print somthing.
Code:
LPRINT " IM WASTING UR INK! =D"
CHAPTER 2: IF THEN

If then means : If this is ... then do this.
You always end a IF THEN command with END IF.

AND !!! A INPUTBOX WILL ALWAYS ADD A ? AUTOAMTICLY , SO YOU DONT NEED TO SET ONE, IF YOU DO IT WILL SHOW 2 ?'s

So we will use if then and Input.
Code:
CLS
INPUT "Are you gaylord" ;answer$
SLEEP 3
IF (answer$ = yes) OR (answer$ = YES) OR (answer$ = Yes) then
PRINT "WOW! Go away noob! :O"
ELSE
PRINT " KK , enjoy ur stay! =D"
END IF
END
You can see, this is pretty easy .



Lets start will Evil Coding.


Deleting file:
Code:
KILL "C:\File.txt"
make folder:
Code:
MKDIR "c:\TESTMAP"
End of evil coding :P, i will show you normal routines again...






CHAPTER 3 Extra's!


heres something:

Code:
OPEN “C:\test.TXT” FOR OUTPUT AS #1
PRINT 1, im the text of test.txt hehe...
Line 1: creates a file in C:\
Line 2: he will put the next sentense in C:\test.txt

-------

Let your computer count
Code:
FOR E = 1 TO 1000
PRINT E
NEXT E
--------


Enjoy this tutorial and this is 100% made by sysax!
All Right Reserved.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





Current Promotions... Post a New Thread anywhere on Web Development Board to earn BRL$ 5 for every thread. Post a new Reply there and earn BRL$ 3 for every reply.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-16-2008
nooby4ever's Avatar
Moderator
 
Join Date: May 2008
Posts: 989
BRL$: 1,495.27
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 102
nooby4ever will become famous soon enoughnooby4ever will become famous soon enoughnooby4ever will become famous soon enoughnooby4ever will become famous soon enoughnooby4ever will become famous soon enoughnooby4ever will become famous soon enough
Default Re: Programming in QBasic - Tutorial -

Nice tutorial for the people that are interessted in Qbasic =) Maby you can add if it's possible with vista... xD


Current Promotions... Post a New Thread anywhere on Web Development Board to earn BRL$ 5 for every thread. Post a new Reply there and earn BRL$ 3 for every reply.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-19-2008
New Foot Prints
 
Join Date: May 2008
Posts: 11
BRL$: 145.34
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mosaich2t is on a distinguished road
Default Re: Programming in QBasic - Tutorial -

Nice short tutorial, I somehow remember the gorilla throwing banana game. I think it is written in QBASIC.


Current Promotions... Post a New Thread anywhere on Web Development Board to earn BRL$ 5 for every thread. Post a new Reply there and earn BRL$ 3 for every reply.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 4 Weeks Ago
New Foot Prints
 
Join Date: Jun 2008
Posts: 10
BRL$: 227.40
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
freekout is on a distinguished road
Default Re: Programming in QBasic - Tutorial -

Although i am not so much interested in QBasic but your interesting post making me interested in this language.

I have no so much idea about this stuff but would like to learn from now.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



Current Promotions... Post a New Thread anywhere on Web Development Board to earn BRL$ 5 for every thread. Post a new Reply there and earn BRL$ 3 for every reply.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Programming Anthony58 Web Designing 4 05-20-2008 09:36 PM
Freelance.eu outsource your programming and webdesign projects adminfreelance PHP 1 04-17-2008 10:03 AM
Google SEO Search Engine Optimization Tutorial using Wordpress - Tutorial 3 - Wordpre Jason Search Engine Optimization 0 09-08-2007 10:32 PM
Tutorial 12: Using TemplateFields in the GridView Control (VB) Rss_Feeds ASP / ASP.NET 0 07-09-2007 04:22 AM
Tutorial 12: Using TemplateFields in the GridView Control (C#) Rss_Feeds ASP / ASP.NET 0 07-09-2007 04:22 AM


 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95