Well I am a programmer, not a teacher to be honest.
Also there are lots of example, since there are lots of scripts.
The rest is just a matter of knowing C++ and a little creativity.
C++ you can learn from books, online courses, etc.
As for creativity, you get that by lots of practice.

Yes. When I say "yes I do not know how to use arrays in my code because, I don't know how to realize it in two different classes..."
Then you would say something like "use google" or "use english"... and the reason why you should say that is: "You are a developer and not a teacher".

Yes. When I say "yes I do not know how to use arrays in my code because, I don't know how to realize it in two different classes..."
Then you would say something like "use google" or "use english"... and the reason why you should say that is: "You are a developer and not a teacher".

And because I will save my time, I am not answering your question.

Would you want help, you would have already helped 10 posts before.

Help can come in many forms.
I don't hold people's hands. So if that's what you are looking for you will be disappointed, I can certainly understand that.
What I can do is nudge you into the right direction, so you learn to think so you don't have to ask for help in trivial matters.

Also no one has suggested that you use the same array in two unrelated classes...