i am trying to do the same exact thing in c++ can anyone help with this? please thank you,.