Im trying to compile 'version 2' or a program ive been working on, and whenever I add this code to my previous code (which compiles fine) it gives me an error 'parse error at end of file' and the line number it gives says the final line in the source file. I can comment out this block of code and it works fine, so im not sure what the problem is.
file.open(chatfile);
cout << "Checking followup tags"<<endl;
do{
qfbreak=0;
file>>tag; //grab the next string in the file
if(!strcmpi("<question>", tag))
{
do{
file>>tag;
if((!strcmpi("<followup>", tag))||(!strcmpi("<afollowup>", tag)))
{
questionf[qfnum]=1;
qfbreak=1;
qfnum++;
}
while((!(!strcmpi("</question>", tag)))||(qfbreak==1));
}
while(!(!strcmpi("<end>", tag)));
file.close();
thanks!
EDIT: Is there a way I can get it to format the text like i put it in...simmilar to the html pre tags?