Hello All,
I recently purchased PB and am looking forward to learning to use it well.
Where can I find an example of a recommended standard program structure layout/Template for PureBasic.
.
Recommended Basic Program Structure
Re: Recommended Basic Program Structure
It somehow depends on the type of program you want to write: application, game, library, ...
In general you start with declaration of constants, structures, and variables.
Then you wrote all you procedures you would need and finally you call your main procedure or you add an event loop.
If you code becomes larger you outsource parts and include it with IncludeFile.
In general you start with declaration of constants, structures, and variables.
Then you wrote all you procedures you would need and finally you call your main procedure or you add an event loop.
If you code becomes larger you outsource parts and include it with IncludeFile.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module