mcd.cpp