C++ Standard Input/Output is your best bet.
If each input item is surrounded by whitespace (blanks, tabs, newlines), the items can be read easily using the extraction operator >> parsing the keyboard input from the cin (terminal input) to a string or character array.
#include <iostream.h> // I/O
#include <fstream.h> // file I/O
#include <iomanip.h> // format manipulation
int myinteger; // declarations
float myfloat;
char mychar;
char *mystring; // two ways to declare a string
char mystring[64];
fp_in >> myinteger; // input from file pointer or standard input
cin >> myfloat;
fp_in >> mychar;
cin >> mystring; // keyboard input to a string
The extraction operator works for numbers (ints, floats), characters (char), and strings (declared as arrays of type char or pointers to type char).
The extraction operator returns a zero value if it encounters a problem (typically, the end of the file). Therefore, it can be used as the test in an if statement or a while loop.
See my next post for useful db functions for scanning specific keys and displaying text.