How To Use - ProRedMax/MYLE GitHub Wiki

The MYLE Library and how to use it

When you want to use the MYLE Library you firstly need to include the header file

#include <myle.h>

There are smaller modules too. If you are not sure which one to use just include myle.h. Other modules like the myle_integer library or the myle_benchmark library can also be included like this

#include <myle_integer.h>
#include <myle_benchmark.h>
//And so on

Start coding with MYLE

In your CPP class you need to Initialize MYLE at the very top in order for MYLE to function properly. You do this with MYLE::Init(). Here is an example:

#include <myle_integer.h>
#include <iostream>

int main() //Your main class
{
    MYLE::Init();
    {
          std::cout << "My random number: " + MYLE::rand_int(1, 5) << std::endl;
    }
}

In this example, a random number between 1 and 5 will be generated (1 and 5 are inclusive).

⚠️ **GitHub.com Fallback** ⚠️