I am making a console app in Dev C++. I was wondering if it is possible for the application to register the number of times a character is entered and change the result accordingly, for example:
if "a" is pressed, then print "4"
if "b" is pressed, then print "3"
if "a" is pressed for the 2nd time, then print "z"
if "b" is pressed for the 2nd time, then print "h"
if "a" is pressed for the 3rd time, then print "4" again