Start from a main routine: Difference between revisions
Added FreeBASIC
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace to the task's preamble.) |
(Added FreeBASIC) |
||
Line 101:
<lang forth>' main turnkey app.exe</lang>
=={{header|FreeBASIC}}==
FreeBASIC does not require an executable program to have a main() method. However, there's nothing to stop you creating one and then calling it to start the program:
<lang freebasic>' FB 1.05.0 Win64
Sub main()
Print "Hello from main!"
End Sub
main
Sleep</lang>
{{out}}
<pre>
Hello from main!
</pre>
=={{header|Gambas}}==
|