Hey guys, when I type my code to getline(cin,name); it skips this line of the code

Code:
   string name;
              cout << "Please Key in your full name: " << endl;
	      getline(cin, name);
	      cout << endl;
	      cout <<"Hello ";
The display on the console skips the part where I input the name. And yes, I have used the header file string