定义了一个类Database在database.h里。在linedetail.h中实例化了Database database;现在想在mainwindow.h中使用database应该怎么写?
定义了一个类Database在database.h里。在linedetail.h中实例化了Database database;现在想在mainwindow.h中使用database应该怎么写?
mainwindow include linedetail.h,如果数理化的database是在class里,那就在mainwindow那实例化这个class。