Question about the while loop

I am trying to reach the entercost part of my program but it will only work if i enter quit? Could someone help me to see what im doing wrong?
void InputandWrite(fstream&Musicfile)
{
char LName[15];
float cost;
cout<< "Enter name of musician: (QUIT to Quit): ";
cin>> LName;
while (strcmp(LName,"QUIT")!= 0);
{
cout<<"Entercost: ";
cin>> cost;
Musicfile<<LName<<endl;
Musicfile<<cost<<endl;
cout<<"Enter name( or QUIT): ";
cin>> LName;
};

while (strcmp(LName,"QUIT")!= 0);
-------------------------------------^
The semicolon is a statement (loop) terminator.

thanks tons
Topic archived. No new replies allowed.