Departamento-de-Engenharia-Informatica / lei-24-s1-2nb-g321

0 stars 0 forks source link

As a Machine Manager, I want to be able to convert a string into a operational command, to allow me automate operations in the machine. #119

Open Diogo1210527 opened 3 weeks ago

Diogo1210527 commented 3 weeks ago

It receives as input a string, op, and an integer, n, and for output it gets a string, cmd. This function should format the output string as follows:

A circular buffer is an array of constant length, and it is used to store data in a continuous loop. It is also known as a ring buffer because it stores the data circularly. The circular buffer has two pointers, one for the head of the buffer and another for the tail. The head pointer points to the location where we will insert the next element, while the tail pointer points to the location of the oldest element in the buffer. The length of the array is also required.

Declare the function like this: