why no iostream?

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
liny
Posts: 30
Joined: 2003-11-01 09:18

why no iostream?

Post by liny » 2003-11-04 22:33

hi, i am learning c++ just now. and
i have learned much by reading dc++ source code.
but i wonder why dc++ does not use std::iostream,
in stl_userconfig.h, it specially turn iostream switch off.

does std::iostream so bad?

thanks

Gratch06
Posts: 141
Joined: 2003-05-25 01:48
Location: USA

Post by Gratch06 » 2003-11-04 22:50

iostream is useful if you're building console based applications, but for anything with a GUI (Graphical User Interface), it serves little purpose, if any. Other classes serve much more useful for getting output to the screen.

Just FYI: DC++ is probably not a good place to start if you're just learning programming...learn at least the basics of the language and a lot about classes first. I'm learning C++ and tweaking the DC++ source code at the same time, and even with a bit of formal programming training, it's still by no means easy.

- Gratch06

Twink
Posts: 436
Joined: 2003-03-31 23:31
Location: New Zealand

Post by Twink » 2003-11-04 23:33

isn't there some weird conflict between iostream and dc++'s stl port?

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-11-05 13:49

Twink wrote:isn't there some weird conflict between iostream and dc++'s stl port?
Arne has spoken to why it's disabled, but I don't think this was the issue. I think it's just saved code + compilation time. Anyone with full dev-hub logs can turn up the answer though ;)

Locked