How can i use cin and cin.getline togethee?

how can i use cin and cin.getline together.
i want to use cin for integer input and cin.getline for string input