CQA system implemented in C++