[Solved] Turing Machine Simulator [closed]

Try something like this: #include <iostream> #include <string.h> #include <vector> #include <fstream> #include <cstdlib> #include <stdio.h> #include “tm.h” using namespace std; tm::tm(char *fn) { current = “”; readFile(fn); } void tm::readFile(char *fn) { char temp; string word = “”; ifstream indata; bool blank = false; indata.open(fn); //opens the file if(!indata) //error message if the file … Read more