Greetings fellas;
So after i compile the following code ,the MusicIns.shortDescription object don t want to receive any input and just switching to the next object ,what id wrong in my code ?
#include <iostream>
using namespace std;
 class Instruments{
public :
 int weight; 
 string size; 
 string name; 
 string shortDescription;
 string designation;
};
    int main(){
 Instruments MusicIns;
  cout<<"Please enter instrument name: "<<endl;
  getline(cin, MusicIns.name);
  cout<<"Please enter the size"<<endl;
  getline(cin, MusicIns.size);
  cout<<"Please enter the weight: "<<endl;
  cin>>MusicIns.weight;
  cout<<"Please enter a small description: "<<endl; 
  getline(cin, MusicIns.shortDescription);
  cout<<endl; 
  cout<<"Please describe the instrument designation: "<<endl; 
  getline(cin, MusicIns.designation); 
  cout<<endl;
   cout<<"============="<<endl; 
   cout<<MusicIns.name <<endl; 
   cout<<MusicIns.weight <<endl;
   cout<<MusicIns.designation <<endl; 
   cout<<MusicIns.shortDescription <<endl; 
   cout<<MusicIns.size <<endl; 
return 0;
};
Don t blame me too much for my level or syntax i am still noob.
P.s. Thank you in advance for any help !
 
    