I'm just wondering if you could answer some of my questions for my case study. Please help me.
[1] How could I make my program detect whether if the inputted characters are integers, characters, etc.?
Sorry if I didn't post my codes here. The Forum won't accept it because it is too long. The CPP is here in the link, by the way : http://www.mediafire.com/?56qlz189qle3w4c
Well you could use sizeof() to determine how many bytes it uses. If the answer is 8, then you likely have a double, long long, or long int. If the answer is 2, then you likely have a short. Otherwise you have an int, float, char, etc. There are also unsigned versions of these and these definitions can change depending on your compiler.
When we read things in from a text file, we are really only getting a bunch of 1s and 0s in sets of 16, 32, or 64 bits. These sets do not contain any information about their type so it is really up to you to map them as applicable.