how to playand edit sound programatically using c++

hi ,

i am new to audacity please help me to implement audacity player function. I want to implement the audacity player in my application. Now i want to use audacity player to play wave file, edit and save the edit sound using c++ audacity function.

It is not clear what you are trying to do.
Audacity is a very complex multi-track audio editor. It is not an audio player and it does not play audio files in the conventional sense. Have you looked in the source code?