0
Help please with a problem on Cpp (Read description for more)
The exercise goes like this: Develop shiftArrayMany function that accepts as parameter a dynamic table of logical values and an integer step parameter and will make circularly sliding of table elements step posts to the right. The function will return the dynamic a table with the slipped elements. I cannot understand how to solve this, All help is welcomed.
6 Answers
+ 1
Too bad, can't help with too little info at hand ...
+ 1
I think it's asking you to change the order of elements in the array, like if you had arr={0,1,2,3,4,5,6,7}, then shiftArrayMany(arr, 1) would return {7,0,1,2,3,4,5,6,}, and shiftArrayMany(arr, 3) would return {5,6,7,0,1,2,3,4}, basically moving each element a certain number of spaces to the right and putting any elements that go off the end of the array back at the start of the array.
But yeah, that exercise isn't explained very well.
0
Did the task give you an example of that dynamic table and how it looks like after processing?
0
Nope
0
I understood that but I don't know how to code it :/