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.

24th Jan 2022, 1:15 PM
Eveft03
Eveft03 - avatar
6 odpowiedzi
25th Jan 2022, 4:14 PM
Edward Finkelstein
Edward Finkelstein - avatar
+ 1
Too bad, can't help with too little info at hand ...
24th Jan 2022, 3:12 PM
Ipang
+ 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.
24th Jan 2022, 6:08 PM
Katherine P
0
Did the task give you an example of that dynamic table and how it looks like after processing?
24th Jan 2022, 3:03 PM
Ipang
0
Nope
24th Jan 2022, 3:11 PM
Eveft03
Eveft03 - avatar
0
I understood that but I don't know how to code it :/
24th Jan 2022, 6:13 PM
Eveft03
Eveft03 - avatar