When i am trying to take input using strings using string a[100] for ( int i = 0 i< n; i++){ getline( cin, a[i])}

for sample input the array given to variable is is of the type
. .
. #

. #
yes
12

!please help this behavior of getline is weird what is wrong?

@snatchit, share your code using ide.codingblocks.com or any other so i can check for possible errors

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.