title: progam stop responding after std::getline am is there a mistake in the code?
body: <p>a part of the progam code is below after i add the name(nome) and press enter the progam closes i already tried using gets didn`t work either</p>
  
  <pre><code>aux1 = (struct no *) malloc(sizeof(struct no)+1);
  printf("\n\nDigite numero a ser inserido: ");
  gets(auxitem);
  aux1-&gt;numero = atoi(auxitem);
  printf("\n\nDigite o nome do contato ser inserido: ");
  std::getline(std::cin, aux1-&gt;nome);
  aux1-&gt;esq = aux1-&gt;dir = (struct no*) NULL;
   if (raiz == (struct no *) NULL)
  raiz= aux1;
  </code></pre>