摘要:
测试:#include #include class KPoint{public: KPoint(int x, int y){ nx = x; ny = y; }private: int nx; int ny;};int main(int argc, char *argv[]){ QApplication a(argc, argv); //Method One KPoint kp(3,4); qDebug() << &kp; qDebug() << sizeof(kp); //Method Two KPoint *p = new KPoint(3,4); qDe 阅读全文