cin.getline not prompting for input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

cin.getline not prompting for input

Why playground not prompting for input? Help me. I am ambitious beginner. #include <iostream> using namespace std; int main() { char myArray[50]; cout <<"Enter Name:" << endl ; cin.getline(myArray, 50); cout <<"You Entered: " << myArray ; return 0; }

6th Apr 2020, 12:47 PM
Laukik Shah
Laukik Shah - avatar
2 Answers
+ 3
Thanks. What changes should I make to run this?
7th Apr 2020, 2:41 AM
Laukik Shah
Laukik Shah - avatar
+ 3
This helped me a lot! Thanks for it:)
8th Apr 2020, 3:45 AM
Laukik Shah
Laukik Shah - avatar