getline function

Suman Barik
0

#include <iostream>


using namespace std;


int main() {


  string fullName;

  

  cout << "Type your full name: ";

  

  getline(cin, fullName);

  

  cout << "Your name is: " << fullName;

  

  return 0;

  

}

Post a Comment

0Comments
Post a Comment (0)