P
Paulo da Silva
Hi!
Please consider the following fragment
std::cin.exceptions(std::ios::failbit);
....
try
{ is.getline(p,ILEN);
...
}
catch (std::ios::failure const &problem)
{ if (WHAT HERE?)
{ // '\n' not found yet
}
else
{ // Real failure
}
}
How do I tell a real failure from just ILEN-2 chars already read but not
yet '\n'?
Thanks for any help.
Please consider the following fragment
std::cin.exceptions(std::ios::failbit);
....
try
{ is.getline(p,ILEN);
...
}
catch (std::ios::failure const &problem)
{ if (WHAT HERE?)
{ // '\n' not found yet
}
else
{ // Real failure
}
}
How do I tell a real failure from just ILEN-2 chars already read but not
yet '\n'?
Thanks for any help.