+ 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
4 Respuestas
+ 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