Here's my thoughts about that code:
1. Don't make array classes yourself. Just don't. Use STL.
2. using namespace std; Don't write that line again ever. Use parts of STL if needed: using std::vector; for example.
3. Don't use global variables in C++ (that 'nopel' whatever it is, totally crappy name for a variable).
4. Don't use _ at front of your own variables.
5. Don't use magic numbers.
6. Your for-loop leaks, it's one off. It should be 0 to less than 5 (0-4 is 5 items).
7. Rather than programming try thinking some other things to do in life.