没考虑很多,一没经验二没时间
比较粗糙,自己这里用估计够用
当成QLabel
struct A
{
int x;
A(int x):x(x){}
void setX(int x){this->x = x;}
int getX(){return x;}
};
结构体
struct danmuLb{
A *x;
danmuLb *next;
danmuLb(A &X):
x(&X),
next(nullptr)
{
// cout<<"danmuLb constructed"<<endl;
}
~danmuLb() {
delete x;
// cout<<"--------------------------------"<<this<<endl;
// cout<<"danmuLb destroyed"<<endl;
// cout<<"----------------------------------------"<<endl;
}
void print(){
// cout<<"<--->"<<endl;
cout<<"num of this is "<<x->x<<endl;
// cout<<&#