This is an C++ implementation of Hidden Markov Model using Gibbs Sampler in Bayes method.