Of course it's valid. You see, when you say Class(), you're creating a temporary object, on which you're welcome to call a method. If a function requires a Class variable as a parameter, you can create one with Class(...) on the spot. It's the same idea.
Try it. :P
 I guess you could think of it this way: a constructor returns an instance of the class type being constructed , , , , I'm not sure if that's a technically valid description, but hey. [/edit]
Oh yes, I know what it does. I've used it a couple of times.
I'm just not entirely too sure if calling methods directly on the object works.
I think I might have tried that sometime? Can't be sure.
Originally Posted by Adak
io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
Originally Posted by Salem
You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.
Outside of your DOS world, your header file is meaningless.