Eyyo.Net Web Hosting and Design a écrit : > Hi Everybody > > I am getting a trouble with getline function. What is that? Let me explain > little. I coded an inventory program which is my first C++ program and I am > using DEV C++ 4.9.2.2 something. Ok. > > I already attached my inventory program codes in this email. Try to use > getline instead of any cin function. If you look into my source code go to > NewRecord function then try to chance new Item Name entry section you will > see that > > cout << "Enter item's name (max 15) :"; > cin >> NewRecord.ItemName; > > and when I change it to > > getline (cin, NewRecord.ItemName); > > then it will pass automatically it means I can not input any data into the > value. > > Please I am really in trouble and before sending this email here i looked for > on the net but got nothing. > > Note: I am a newbie. > > Thanks > Bilgehan >
http://www.cppreference.com/cppstring/getline.html
