Submitted by Mi-K on Thursday, March 8, 2012 - 2:09pm
This section will gather all errors found when you were coding in Eclipse.
It is really hard sometimes to find what is the problem when you get an exception.
Submitted by Mi-K on Thursday, March 8, 2012 - 12:42pm
In this tutorial we will how to easily manage errors in C programming language.
That is we will try to open a file and if this file doesn't exist we will trigger an error.
If the file exists, we will tell its name with a message to say that the file really exist.
Submitted by Mi-K on Wednesday, February 29, 2012 - 10:13am
As you already saw it, creating a list in OCaml is not so difficult.
But this time, we will see how to iterate through a list and display all elements inside.
We will create two arrays, one of ints, the other of strings.
Once done, we will display their elements.
Let's see it with this OCaml list tutorial.
Submitted by Mi-K on Tuesday, February 28, 2012 - 1:45pm
OK, this is not really a getter implementation like we can have it in other object-oriented programming, but it is close of it.
We have first to create an human variable with a tuple ("name", age).
Then we have to create two getter functions to retrieve the first and the second parameter of this human variable.
Submitted by Mi-K on Tuesday, February 28, 2012 - 9:22am
OCaml is a fully recursive language. So using recursion is completely natural.
We will see in this example how to create an easy recursion of a classic factorial. This in two different manners.
These two ways of using recursion are strictely the same, the type of the function and the result as well of course.