yes, it pretty much does it, thank u, the cin.clear doesn't
seem to affect the program though. Only one thing, the
first time I still have to press enter twice.
Type: Posts; User: jriano
yes, it pretty much does it, thank u, the cin.clear doesn't
seem to affect the program though. Only one thing, the
first time I still have to press enter twice.
I dont know if the problem is the way I use getline.
If I run this little program, it is supposed to read a string, a number...5 times, but it does not, after the second atepmt,
the program goes...
Could someone tell me what can be wrong with
my vc++ installation?
when I use getline as for example:
getline(cin,name,'\n');
I have to press twice ENTER.
Why is that?
and also, how do I...
thank u guys
i created this class:
class Surgery
{
public:
double cost();
};
I am then using it in this line:
if(size & 1)
I need to read from a file, line by line, the text has blanks in it, I need to know the number of characters per line(included the blanks). I tried using getline, get, so that i could store a line in...