jalkadir wrote:
> I am trying to get character string from the user, to do that I use
> getline(char_type*, streamsize), but I get a segmentation fault??!!
>
> Can anyone give me a hand, what am I doing wrong?
Someone else said what's wrong already, but I think there's a better
alternative:
std::string line;
if(std::getline( std::cin, line))
{
// use line
}
Uli
--
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/
_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus