I assume you will be developing on Windows.
C++: You can use the (
Speech API[
^]).
C# (if you decide to go that way): There are some
API[
^] available for that.
If you need to re-invent the wheel, then you will need to learn about the different speech recognition algorithms; I assume it includes a lot of spectral (spectrum?) analysis.
Just google it.
Max.