--- In [email protected], "Eyyo.Net Web Hosting and Design"
<[EMAIL PROTECTED]> wrote:

> 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. 

http://linux.about.com/library/cmd/blcmdl3_getline.htm
http://www.die.net/doc/linux/man/man3/getline.3.html


Reply via email to