flowerzink 0 Newbie Poster

Hello, I have a problem, and I'd be grateful if someone could help me solve it.
It's divided in two parts:

1. Record a sound using only code (Doesn't have to be in c++)
2. Being able to use the sound of a hanclap and use it to trigger an event ( for now, I just need a way to read it from a .wav file and store it into a vector or linked list).

Can someone help me with this?

Thanks in advance