I'm trying to figure out how to do template lists. I have this
GList<int> list1;
GList<float> list2;
GList<string> list3;
ifstream inFile;
inFile.open("data.txt");
while(!inFile.eof()){
The code keeps going but that is about all that is important. The data.txt consists of ints, floats, and strings, which are separated by "I"'s, "F"'s, and "S"'s. I'm trying to store the data type in the correct list. I know that I need to find an "I", then get the next item after it, which is an int, and do that for the floats and strings. Would I store the data.txt in a sting, then someway get the info from that? I've tried that way but I just get the can't convert to int error. Any suggestions?