发现用混合C的C++很难写出完全正确的程序
摘要:
#include #include #include using namespace std;struct A { A() { printf("A::A()/n"); } ~A() { printf("A::~A()/n"); }};struct G { G() { printf("G::G()/n"); } ~G() { printf("G::~G()/n"); }};G g;int main(int argc, char* argv[]){ if (argc = sizeof(szbuf)) { perror( 阅读全文
posted @ 2009-05-04 18:50 能发波 阅读(158) 评论(0) 推荐(0)