#include #include using namespace std; const char ESC = (char)27; void cursor_goto(int x, int y) { cout << ESC << "[" << y << ";" << x << "f"; } void clear_screen() { cout << ESC << "[2J"; } void press_enter_to_continue() { string s; getline(cin, s); } // see https://espterm.github.io/docs/VT100%20escape%20codes.html for more codes int main() { clear_screen(); for (int i = 1; i <= 24; i += 1) { cursor_goto(i*2-1, 25-i); cout << "##"; } press_enter_to_continue(); for (int i = 1; i <= 24; i += 1) { cursor_goto(i*2-1, 25-i); cout << "@"; } }