//2010 - programming //Completed animation program from Wednesday class // //Copy and paste this program into your anim.cpp program. //Compile and run it. // #include #include using namespace std; const int SIZE = 20; int main() { char screen[SIZE][SIZE]; int pos[2] = { 0, 9 }; int dir = 1; system("clear"); while (true) { //fill screen array for (int i=0; i= SIZE-1 || pos[0] <= 0) dir = -dir; //display screen cout << "\033[0;0H"; //<--- start drawing from the top cout << "2010 - 2d array animation" << endl; cout << "Press Ctrl-C to end\n" << endl; for (int i=0; i