Articles

Affichage des articles du janvier, 2022

Digital rain assignement

Image
 Digital Rain Assignment Introduction This article is link to the assignment to create a code in c++. The code will create a digital rain. It became famous with the movie The Matrix: Explanations I used a multifile structure with 1 main.cpp, 1 header file and 1 cpp file. This structure is the standard structure to use if you include classes in your code. I call a unique class in my main.cpp that will execute an infinite loop. The header file contains the declaration of the class, where I also declare the functions and the elements in my class. And then I code all the functions and the class in the cpp file. This is the main.cpp calling the class Matrix to create a unique object. In the header file I created 3 random functions that give a random behaviour to my code, and a display function. The array was added because I thought the project around an array of 100x1. Each column would have had an address in this array that would guaranty to not overwrite on the columns. In the cpp fil...