A program to calculate equivalent states in a DFA written in C++.