Hello world/Newbie: Difference between revisions

Hello world/Newbie in FreeBASIC
(Hello world/Newbie in FreeBASIC)
Line 934:
* press <code>F1</code> or click the <code>help</code> button to bring up Factor's help browser
* click <code>Your first program</code> to recieve step-by-step instructions on how to integrate an editor of your choice with the listener, create your own vocabularies, write tests, make scripts/binaries, and learn more about the language
 
 
=={{header|FreeBASIC}}==
<h3>Installation</h3>
FreeBASIC gives you the FreeBASIC compiler program (fbc or fbc.exe),
plus the tools and libraries used by it. fbc is a command line program
that takes FreeBASIC source code files (*.bas) and compiles them into
executables. In the combined standalone packages for windows, the main
executable is named fbc32.exe (for 32-bit) and fbc64.exe (for 64-bit)
fbc is typically invoked by Integrated Development Environments ([[IDE]]) or
[[Editor|text editors]], from a terminal or command prompt, or through build-systems
such as makefiles. fbc itself is not a graphical code editor or IDE!
Download FreeBASIC here: https://sourceforge.net/projects/fbc/files
 
<h3>Interface</h3>
FB does not have 'default' IDE
Optionally, you can install a [[Editor|text editor]] or [[IDE]] which will invoke fbc.exe for you.
<h4>[[Windows]]</h4>
* WinFBE Editor: https://github.com/PaulSquires/WinFBE
* FBIde: https://fbide.freebasic.net/
* VisualFBEditor: https://github.com/XusinboyBekchanov/VisualFBEditor
* PoseidonFB: https://bitbucket.org/KuanHsu/poseidonfb/
* Geany: https://www.geany.org/
 
<h4>[[Linux]]</h4>
Unless you already have a [[Editor|text editor]] or [[IDE]], you should install one too, as FreeBASIC itself does not include one. An [[IDE]] can be used to write and save .bas files and to launch the FreeBASIC Compiler to compile them. The following IDEs are known to explicitly support FreeBASIC:
* Geany: https://www.geany.org/
 
<h3>HelloWorld Program (Text Output)</h3>
To display the "HelloWorld!" in the Text Output, copy this code and paste to the code editor:
<syntaxhighlight lang="gwbasic">Print "HelloWorld!"</syntaxhighlight>
Then press F5 or click the play button. <br>
You have just created and run your first program. <br>
<h3>HelloWorld Program (Graphics Output)</h3>
To display the "HelloWorld!" in the Graphics Output, copy this code and paste to the code editor:
<syntaxhighlight lang="gwbasic">Cls 'Clear the graphics screen
Screen 1 'Mode 320x200
Locate 12,15
Print "Hello world!"
Sleep</syntaxhighlight>
Then press F5 or click the play button.<br>
 
<h3>Documentation</h3>
Press F1 or click the ''Help'' menu for language help/documentations.<br>
Or consult the online manual at: https://freebasic.net/wiki/DocToc
 
 
 
=={{header|Fortran}}==
2,154

edits