Quote:
I don't know how to do
Then it's time to learn.
Start reading a book on
C++
programming language. There are also many tutorials available on the web. Moreover, on
cppreference.com[
^] you may find code examples (see, for instance, the
friend [
^] page).