[edit] It seems this conversation is a little more ripe than I thought ;-> Helios is right to be annoyed, so all I mean is you can show some tact and consideration when asking for and receiving answers. That's all.
Oh, I wasn't annoyed. Not at him, anyway.
Although I do wish more people took the time to learn the syntax and learnt to read references.
== to compare strings... Thank you very much, BASIC. Thank you very much.
Just kidding. It's the teacher's fault, not BASIC's.
Master iostream? Now, that's some endeavor. For a beginner, anyway.
O... kay...
It seems that this has gone a little off-topic.
What does iostream have to do with comparing C strings?
For that matter, what do classes have to do with comparing C strings?
Finally, you wouldn't happen to be picking the contents of your replies through some sort of chance-based method, would you?
That's all fine and good, but it's completely off-topic, since you don't need neither classes nor iostream to compare C strings.
This function is all you need to compare C strings: http://www.cplusplus.com/reference/clibrary/cstring/strcmp.html
If there's something about it you don't understand, you can come back and ask.
And I am well aware of what C strings are, thank you. I don't think I'll need to be reminded any time soon.
Er, well... It does appear that he is as green as they come.
I don't see anything particularly off-topic about trying to figure out how to relate input and strings --it is part of his original premise so I think it fair to ask about it.
I don't know what book you are reading, but keep working through it. If you try to do something beyond what you have worked your way through so far, and it doesn't quite work, just put it aside for a while and keep working your way through the book. Either you will directly cover the topic eventually, or you will learn enough to be able to work it out yourself. Don't get too frustrated at the start.
Of course, us jerks will be here to help if you get really lost on something. :-)