I have three raw strings:
string wawe1 = R"(
^ ^ ^
^ | ^ | |
| | ^ | ^ | ^ |
| | | | ^ | | | ^ |
| | ^ | ^ | | | | ^ | | |
| | | | | | | ^ ^ | | | | ^ | |
| ^ | | | ^ | | | | ^ | | | | | | | |
| | | ^ | | | | | | | | | | | | | | | |
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++)";
string wawe2 = R"(
^ ^ ^
| ^ | ^ |
^ | | | | | ^ ^
| | ^ | | ^ | | ^ | |
^ | ^ | | | | | | | | | |
| | | | | | | | | | | ^ | ^ |
| | | ^ | | | ^ | | | ^ | | | | | |
| | ^ | | | | ^ | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++)";
string wawe3 = R"(
^ ^ ^
^ ^ | | | ^
| | | | ^ | |
^ | | | ^ | | | |
| | | | ^ | | ^ | | ^ |
^ | | | ^ | | | | | | | | ^ | ^
| | | ^ | | | | | | | | | | | | |
| | | | | | | | | | | | ^ | | | | |
| | | | | ^ | | | ^ | | | | | | | | | |
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++)";
And so I execute them:
for (int i = 0; i < 100; ++i) {
cout << wawe1 << 'r' << flush;
Sleep(1000);
cout << wawe2 << '\r' << flush;
Sleep(1000);
cout << wawe3 << '\r' << flush;
Sleep(1000);
}
But I do not get the effect I want, I would like them to be replaced one by another, to give it a movement effect, instead I get it printed one after the other.
Is it possible to do what I'm looking for?