[A89] Re: [OT] c++ help


[Prev][Next][Index][Thread]

[A89] Re: [OT] c++ help




At 23:44 2002-02-14, you wrote:
>Hey, don't get too critical.  If you have a really bad teacher (read "one 
>like I had") then you'll
>never find out that you can do multiple cin's like that - my teacher 
>didn't even know that.  I
>figured it out on my own, and when I turned in a program using it, she 
>told me she didn't think it
>would work.  That question was the kind of specific thing about functions 
>that a lot of teachers
>won't bother to tell you.
>jeffrey

uhm..  I'm sorry, but you teacher should really lose her job. that 
functionallity is a _very_ basic feature of streams (that is, not only cin, 
but all streams) that every c++ book in existance mention. If it doesn't it 
should be burned.
Actually, for his question he could have solved it like this too:

cin >> year;
cin >> day;
cin >> month;

And it would have worked perfectly with entering "1983 23 7".
I get the strong impression that he didn't even try...

///Olle




Follow-Ups: References: