Allright so here's my problem. I am trying to read in characters from a file and compare two tags. A start tag and an end tag.
The tags consist of <start> and <end> where the start tag and end tags are equal. if they are not equal to each other, then the function must return false.
The function definitions are as follows:
bool start(ifstream &in, char &curr, char el_name[]) bool end(ifstream &in, char &curr, const char el_name[])
I have to compare the two el_names and see if they are equal.
I tried using strcpy to copy the strings into it's own start tag but that didn't work.
I tried using strcmp and i think it works but i'm not sure where to put it in my code.
I really need help with this. I'm almost done everything but i'm just stuck on this one part.
Thanks

New Topic/Question
Reply



MultiQuote





|