sure. this is all i have so far (not complete).. no pointers either..
PHP Code:
#include <iostream.h>
#include <fstream.h>
#include <string.h>
#include <stdio.h>
struct qtype {
char question[70];
char answer[4][70];
char rightanswer;
};
void main () {
ifstream sourcefile ("quizfile.txt");
qtype item[12];
char line[70];
char userans[12];
int c;
if (sourcefile.fail())
cerr << "Error opening quizfile.txt...";
else {
sourcefile.getline (line, sizeof(line) );
strcpy (item[0].question,line);
cout << item[0].question << "\n\n";
/* for (c=0; c<4; c++) {
sourcefile.getline (line, sizeof(line) );
cout << line << endl;
}
cout << "\nAnswer: ";
cin >> userans[0];
*/
}
}