Thank you for you idea,
the problem is how to do what u say in c/c++?