quote:Original post by EstorBoring task. That code is C, not C++ so fixing it to use exceptions and the idioms that go with it (RAII) would mean rewriting it. With C++ stuff (e.g. streams, strings, exceptions) it''d look pretty different and a lot shorter, that I can assure.
exeptions... exeptions... ok show me please, haw will be lookin this code with exeprions ???
Buy a C++ book.