Need help please, why is it skipping cin.getline();
Code:#include <cstdlib> #include <iostream> #include <fstream> using namespace std; struct data { int item; char Des[256]; int qty; }; int main(int a, int b, char c[256]) { char string[10]; data items; cout<<"Please enter the item number > "; cin>> a; cout<<"Please enter the item's decription > "; cin.getline(string,10); cout<<"\nPlease enter the quantity on site > "; cin>> b; 0fstream filea; filea.open("test.txt",ios::app); }