Re: Beginning C++ in FreeBSD

看板FB_chat作者時間22年前 (2004/04/28 04:42), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串25/43 (看更多)
Sergey Zaharchenko <doublef@tele-kom.ru> writes: > // Turing strikes again:) > // Ok. Write this (to be compiled as a shared object) in portable C: > > #include <iostream> > > class A > { > public: > A(); > }; > > A::A() > { > cout<<"This shared library was loaded!"<<endl; > } > > static A a; Sure: void a(void) { cout =3D endl =3D 0; } the error message won't be *exactly* the same, but pretty close (different line numbers, and "In function `a'" instead of "In constructor `A::A()'") DES --=20 Dag-Erling Sm=F8rgrav - des@des.no _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
文章代碼(AID): #10ZiMS00 (FB_chat)
討論串 (同標題文章)
文章代碼(AID): #10ZiMS00 (FB_chat)