5 Beginners Guide
latenightz edited this page 2021-04-26 19:04:40 +00:00

Here, you can find a nice tutorial for beginners using EZLib!

Firstly, I would like to thank you for taking interest in EZLib!

Now, once you've downloaded EZLib and put the header files in a directory (I recommend calling it /lib/, that's what we use!)

Make sure to include it in the file you want to use EZLib in, Example

#include <iostream>
#include "lib/ez.h" // This is the EZLib main file! You need it to call ezl_ functions.

using namespace std;

int main() {
    ezl_hello(1); // Prints a hello message
}

Notice that 1 in the function call? That's the nl variable, short for Newline. If that value equals 1, it will append a \n to the end of the hello message (works for most other functions, too!) so then, whatever text you print next will appear on the line below the hello message, making it easier for development.

Next are some other functions you can call:

ezl_time(newline var here); - prints out the UNIX Time

ezl_ver(newline var here); - prints out the EZLib version (coming soon, whenever it officially releases!)

note: instead of using ezl_ver(), it's recommended you use ezl_info(). supply no NL variable, it's disabled in source, so you'll have to write that in yourself!