-
Notifications
You must be signed in to change notification settings - Fork 0
How To Use
Maximilian Burger edited this page Sep 3, 2020
·
1 revision
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 onIn 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).