C++ beginners project

cat7@
Project2somecodesmayneeded.pdf

#include <conio.h>//include this library to use key pressing int scanCode1, scanCode2; scanCode1 = getch(); //get the first integer scanCode2 = getch(); //get the second integer

#include <windows.h>//include this library to change the color of the active number SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 11); //change the color of what you output in the console SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7); //change the color back of what you output in the console

Hint for the sorting part: for example, an array as following: 6 2 -4 0 5 and -4 is active. Before sorting, you can save the value of active number (-4) in a location. That would make it easier.