guix:
HelloSorry, I have to tell you this: your program is a mess! You should consider rewriting it.
ahaha. sorry.
can't really grasp the idea of using pointers in C++. i get really confused by it. thanks for all the comments!
i'll try your advices. thanks!