I am not managing to make this work, I am trying to read a "description" string from console but when the time to enter the input is supposed to come, the program just skips it and ask directly for the next statement which is shoe size. Please help.
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
// Definicion
int main()
{
int referencia; // variable
int talla;
string descripcion; // variable para conjunto de letras por ejemplo marlis;
char disponibilidad; // variable para una sola letra por ejemplo M
int costo;
int precio;
cout <<"Manage shoe sales"<<endl; // Salida o muestra de mensaje en pantalla
cout <<"Enter shoe reference..."<<endl; // Recibir respuesta y asignar >> a una variable
cin>> referencia;
cout <<"Enter shoe description..."<<endl;
getline(cin, descripcion);
cout <<"Enter shoe size..."<<endl; // Recibir respuesta y asignar >> a una variable
cin>> talla;
system("pause");
return EXIT_SUCCESS;
}