Hi,
I have this struct definition in my program:
this struct: qtype item[12];PHP Code:struct qtype {
char question[70];
char answer[4][70];
char rightanswer;
};
and this string: char line[70];
Now, with this code:
(on that last line) I'm getting an Lvalue Required error..PHP Code:ifstream sourcefile ("quizfile.txt");
sourcefile.getline (line, sizeof(line) );
item[0].question = line;
What's wrong?
Linette



LinkBack URL
About LinkBacks


