CAM> for nigh on three years, and I think it's fab.
CAM> Further, I think Java is for women^H^H^H^H^H lazy
CAM> people. ;) In the middle of
CAM> a Java project just now and although you get
CAM> everything for free I just feel
CAM> there was more fun developing your own dynamic array
CAM> classes etc., and besides
That's the exact reason I hated C & C++ ... that I had to keep reinventing
the wheel (linked lists, dynamic vectors, etc.). At least now I don't have
to reinvent those wheels (think "STL").
CAM> application, so the
CAM> abstract class was a Cell, and from that I produced StringCell,
ntCell,
CAM> FloatCell...
That sounds like a definately text-book style of using abstract base classes,
yup. :-)
CAM> // An observation about what C++ means to some lecturers...
CAM> #include
CAM> int main(void)
CAM> {
CAM> cout << "This is C++ just because I'm using " <<
CAM> "cout and not printf..." << endl << flush ;
CAM> return 1 ;
CAM> }
A) The second inserter operator (<<) on the first cout line is unnecessary.
B) Returning non-zero implies an error occurred. :-)
Side-note for gcc users: don't forget to link in stdc++! :-)
--- Maximus/2 3.01
---------------
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)
|