I need to read a txt file as data input. The format of the txt data is:
...
x x C
C
x x C
x x C
C
C
...
where x represent numeric value, C is charater, and the same format repeated many times, but may change to another format as follows:
x x C
C
x x C
C
C
x x C
Numeric value x has to be put in an array, say, int N; and character value will be put in a character array, CH. Can some one here give me a hint on how to make a C++ program to read this piece of data?
Thank you so much!