int main() { IoHandler ioh; MatrixGraph mg; ListGraph lg; TaskManager tm; while (1) { char menu = ioh.getMenu(); switch (menu) { case 's': // 탐색 case 'S': tm.searchGraph(mg, lg); break; case 'm': // 최소비용 신장트리 case 'M': break; case 't': // 위상정렬 case 'T': break; case 'q': // 종료 case 'Q': exit(1); } } system("pause"); return 0; }