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.