Converting strings to char
What I'm trying to do is to get pieces of information from a file and then store them in struct array. So far I've managed to get text from the file just the way I need it, but I can't figure out how to convert the strings I get into some kind of type that is storable in a struct.
In the below code, I would like to store the contents of temp into a struct array. How do I do this?
if ( accfile )
while ( getline (accfile, line) )
while ( getline (subtemp, temp, ';') )
cout << temp << endl;