string - Cin.getline being skipped after second time using -


that's code, on second time try use command cin.getline, it's skipped, what's going on?

    #include <iostream>  using namespace std;  char nome [50], endereco[50]; int cep, telefone;  int main () {     cout << "digite seu nome sem espacos " <<endl;     cin.getline(nome, 50);     cout<<"\n"<<endl;      cout << "digite seu cep" <<endl;     cin>> cep;     cout<<"\n"<<endl;      cout << "digite seu endereco" <<endl;     cin.getline(endereco, 50);     cout<<"\n"<<endl;      cout << "digite seu telefone" <<endl;     cin>> telefone;     cout<<"\n"<<endl;      cout <<"seu nome e: " << nome <<endl;     cout<<"\n"<<endl;      cout <<"seu cep e: " << cep<<endl;     cout<<"\n"<<endl;      cout <<"seu endereco e: " <<endereco <<endl;     cout<<"\n"<<endl;        return 0;  } 

my problem on part

cout << "digite seu endereco" <<endl;         cin.getline(endereco, 50);         cout<<"\n"<<endl; 

that part skipped, dont know what's going on, someomne please explain me this