Fgets little problem

First hello, this is my first post here :)
My problem is basically the fgets function. I need to get all the lines from a file to a certain point in an array, and what comes next in another array.
Let me show you:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <cstdlib>
#include <iostream>
#include <vector>
#include <stdio.h>

using namespace std;

int main()
{
    FILE * pFile;
    vector <string> BQuestions;
    vector <string> ITQuestions;
    vector <string> Answers;
    char szQuestion[255];
    char szQuestion2[255];
    pFile = fopen ("Questions.qst", "r+");
    if ( pFile != NULL ) {
         while(!feof(pFile)) {
             fgets(szQuestion, 100, pFile);
             if(szQuestion == "IT:") {
                continue;
                }
             BQuestions.push_back(szQuestion);
             }   
    }

    for(int i = 1; i < BQuestions.size(); i++) {
            cout << BQuestions[i] << endl;
            }
    _sleep(2000);
    
}

The cout is just a test.
1
2
3
4
5
6
7
8
9
10
11
12
13
The file looks like this: 
Biology:
Cate oase sunt in corpul uman ?
Cati cromozomi contine o celula umana ?
Ce se afla in dreptul tamplei ?
Ce controleaza cerebelul ?
Care este cel mai lung nume al unui os din corpul uman ?
Care emisfera controleaza partea dreapta a corpului ?
Care glanda controleaza hormonii de crestere ?
IT:
Cati MB contine un GB ?
In ce se masoara dimensiunile unui display ?
end

If it seems a strange language, it is in Romanian (building it in Romanian before the English version xD)
So, the thing is, it doesn't stop when it finds IT:, but it writes it down in the vector, so when I cout I can see exactly the same data as in the file, including IT:, Biology: and end...


Thanks in advance,
BreaKer.
Nevermind, problem solved with "strstr"
Topic archived. No new replies allowed.