I made a simple Turing machine using C++ it reads the input from .txt file and then cout's the output in the terminal. The problem is every time the char moves it prints it on the next line, what I want is to cout the output on the same line, so it just overwrites. Yes I tried to use "\r", but what it does it just only print the first char instead of the whole array

```
        for (int j = 0; j < rule; j++)
    {
        cout << tape[j];
        //Sleep(1);
    }
    cout << endl;

```