Hi Ivan,
This particular forum is just an informal place for new members to intruduce themselves, but it isn't a forum where actual computer-related questions are asked and answered.
You should post your question in a new thread in our C/C++ forum so that our programming helpers can offer advice.
In your post in that forum, please try to include as much specific information as possible about the program you are trying to write and the exact problems you are having. Knowing those things will help us get you a solution more quickly.
Thanks.