This is a part of my quiz program in which i ask the user to input question and 4 options and the correct option after which in new funtion i ask the quiz. but although it is asking me "option-1", its skipping the "Ques-"
int quizquestion()
{
cout<<"\nQues- ";
cin.getline(stmt,100);
cout<<"Option-1 ";
cin.getline(opt1,30);
cout<<"Option-2 ";
cin.getline(opt2,30);
cout<<"Option-3 ";
cin.getline(opt3,30);
cout<<"Option-4 ";
cin.getline(opt4,30);
cout<<"Correct Option number:";
cin>>correct;
cin.ignore(numeric_limits<streamsize>::max(),'\n');
c++;
return c;
}