FreeBASIC is a programming language very similar to Microsoft's quickBASIC, but has many differences. FreeBASIC can actually be a powerful language.
If two people were working on the same program at the same time, they can create different source files and compile them together. For this simple hello world program you write this code:
Hello.bas
1. 1
2. color (c)
3. print "Hello world"
4. sleep 300
If a friend wrote that, insted of copy and pasting into your source file you can do this:
World.bas
1. #include "Hello.bas"
2. c = c + 1
3. if multikey(&h01) then goto 2
4. goto 1
5. 2
This is a simple way to combine multiple source files similar to different calsses in the Java programming language.
freeBASIC tutorial #3 will actually explain this code block here, if you don't understand explination will soon arive. Click the subscribe button on the right to be notified when a new tutorial is released.
No comments:
Post a Comment