As we all know that cin alone is not able to take full sentence, it can take only single word. My problem is when i use cin.getline(s,20) the program runs and there's no error but when i try to take the input it doesn't take
Without taking any input it moves to the next instruction!
Please tell me why is this happening? i tried using fflush(stdin) but still the same problem is coming. Please help me out! :(