Expected primary-expression before "else"

Where is this primary-expression meant to be exactly? :S

1
2
3
4
5
6
7
8
9
10
11
for(;;)
         {
            cout << "What is your current salary: " << pound;
            gets(salary);
            if(!strcmp(salary, "q"));
             {
               n = atof(salary);
               salaryf(n);
             }
            else if(strcmp(salary, "q")) break;
         } 


just to clarify this isn't all the code so sorry if it is a little bit confusing.

*EDIT* sorry just realised, the title is the error message my compiler gives. the error after this one is
" expected ';' before "else" " :S
Last edited on
Look very closely at line 5.
:) Thank you
Topic archived. No new replies allowed.