While working with neuronal or bayesian network for diagnosis one of the most important thing you need to do is to choose correctly the trainning and the testing sets.

I’ve just made a little implementation of the K-fold cross validation technique in C++ because after looking for it I couldn’t found anything on that language.

I hope it will be useful for you, you can find it here