im trying to write a code that allows a 3x3 array shift within the bounds of a 9x9 array. the 3x3 is actually a char* cpaa[3][4] and the 9x9 is a char caArray[9][10]. but I'm having trouble thinking of an algorithm that shifts every index of the 3x3 pointer let alone based on user input. I've been siting on this one for a few weeks and i cant figure anything out. if someone could point me in the right direction i would much appreciate it.
like how a window scroll bar works but simpler. I want to cout the 3X3 array in the console window and when the user enters input it slides the scope accordingly to show the hidden information from the larger 9X9 array