I'm trying to take input from User in program But unable to take input at index 0
void User::call() { `cout<< "number of times :"; cin>>a; for (int i=0 ;i < a;i++) { cout<<"ENTER NAME : "; getline(cin,b); cin.ignore(); } }
`
I have attached the pictures of code and output result . Kindly check. MY CODE HERE AND OUTPUT HERE.