| re: casting problems.
Trying it all now, thank you very much. I've just noticed that the compiler
has the runtime type checking turned off which may explain when I tried
dynamic_cast last time it didn't work. Mind you I was shooting in the dark
then so it may of failed for other reasons.
Again, thanks for you help. :-)
"Sharad Kala" <no.spam_sharadk_ind@yahoo.com> wrote in message
news:c1cgth$1g24na$1@ID-221354.news.uni-berlin.de...[color=blue]
>
> "Richard E Collins" <richard@collins1969.fsnet.co.uk> wrote in message
> news:c1cger$tp4$1@newsg3.svr.pol.co.uk...[color=green]
> > I think I had tried that, but then I randomly tried all the cast[/color][/color]
operators,[color=blue][color=green]
> > been coding for over ten years but never have stretched my C++ skills.
> >
> > What's all this bit about? Is it needed to make it work?
> >
> > #include <iostream>
> > using namespace std;[/color]
>
> I have used the cout object in the demo code I posted.
> Now that is defined in header <iostream> (no .h)
> Note that iostream.h is deprecated and non-standard.
> So you know why I need to write #include <iostream>.
>
> Also everything in these standard headers is wrapped up inside the std
> namespce.
> Since I was lazy enough to type std::cout everytime so I wrote
> using namespace std :-)
>
> Got your answers ?
>
> -Sharad
>
>
>
>[/color] |