+ 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; }
2 ответов
+ 3
Thanks. What changes should I make to run this?
+ 3
This helped me a lot! Thanks for it:)