As far as I know cin is used for getting input from the keyboard, and inFile is a common way used to access info stored in a file already, using the #include <fstream> directive and doing something like
ifstream inFile;
to create a file object.
The only thing I can conclude that your professor wants is for you to convert a program from reading from a file to reading from the keyboard.